Get premium membership and access questions with answers, video lessons as well as revision papers.
i. Statement and a block.
A statement forms a complete unit of execution e.g. System.out.println("Hello World!");
A block is a group of zero or more statements between balanced braces and can be used anywhere a single
statement is allowed. e.g.
if (condition) { // begin block 1
System.out.println("Condition is true.");
} // end block one
else { // begin block 2
System.out.println("Condition is false.");
} // end block 2
}
}
ii. Superclass and subclass
Inheritance is the process by which objects of one general class acquire the properties of objects of another
(derived) class. A derived class is a class defined by adding instance variables and methods to an existing
class. The existing class that the derived class is built upon is called the base class, or superclass. A base class
is also called a superclass, a parent class, and an ancestor class. A derived class is also called a subclass, a
child class, and a descendant class
iii. Function overloading and overriding
Overloading a method name means giving the same name to more than one method within a class. To do
this, you must ensure that the different method definitions have something different about their parameter
lists i.e. either have different numbers of parameters or have corresponding parameters with differing
types.
Overriding - In a derived class, if you include a method definition that has the same name, the exact
same number and types of parameters, and the same return type as a method already in the base class, this
new definition replaces the old definition of the method when objects of the derived class receive a call to
the method.
gregorymasila answered the question on January 24, 2018 at 17:33
- State and explain four advantages of Java as an object oriented programming language.(Solved)
State and explain four advantages of Java as an object oriented programming language.
Date posted: January 24, 2018. Answers (1)
- Briefly describe what it means by business object analysis?(Solved)
Briefly describe what it means by business object analysis?
Date posted: January 24, 2018. Answers (1)
- Explain the benefits of the Unified Software Development Process (USDP).
(Solved)
Explain the benefits of the Unified Software Development Process (USDP).
Date posted: January 24, 2018. Answers (1)
- Define a model and briefly discuss the two types of models(Solved)
Define a model and briefly discuss the two types of models
Date posted: January 24, 2018. Answers (1)
- What is generalization? Give its advantage.(Solved)
What is generalization? Give its advantage.
Date posted: January 24, 2018. Answers (1)
- Briefly discuss UML and State significance of the Unified Modeling Language (UML) in object orientation (Solved)
Briefly discuss UML and State significance of the Unified Modeling Language (UML) in object orientation
Date posted: January 24, 2018. Answers (1)
- Outline some characteristics of a bad design? (Solved)
Outline some characteristics of a bad design?
Date posted: January 24, 2018. Answers (1)
- State the significance of analysis in object-oriented approach to systems development. (Solved)
State the significance of analysis in object-oriented approach to systems development.
Date posted: January 24, 2018. Answers (1)
- Define inheritance (Solved)
Define inheritance
Date posted: January 24, 2018. Answers (1)
- Briefly explain the main phases of USDP. (Solved)
Briefly explain the main phases of USDP.
Date posted: January 24, 2018. Answers (1)
- Most experts agree on a set of common principles of quality software: Briefly discuss the design principles stated below (Solved)
Most experts agree on a set of common principles of quality software: Briefly discuss the design principles stated below:
Reusability
Reliability
Robustness
Extensibility
Scalability
Date posted: January 19, 2018. Answers (1)
- Identify and discuss five aspects of human intelligence that could be used to characterize intelligent knowledge based systems.(Solved)
Identify and discuss five aspects of human intelligence that could be used to characterize intelligent knowledge based systems.
Date posted: January 9, 2018. Answers (1)
- Define a table.(Solved)
Define a table.
Date posted: January 3, 2018. Answers (1)
- After the system is operational, post-implementation evaluation performed. How is this
conducted and what is its significance?(Solved)
After the system is operational, post-implementation evaluation performed. How is this
conducted and what is its significance?
Date posted: December 18, 2017. Answers (1)
- What could form the source of information for developers of a new system?(Solved)
What could form the source of information for developers of a new system?
Date posted: December 18, 2017. Answers (1)
- In fact finding for systems development a number of techniques for investigating and
recording user requirements exist. State the four main techniques.(Solved)
In fact finding for systems development a number of techniques for investigating and
recording user requirements exist. State the four main techniques.
Date posted: December 18, 2017. Answers (1)
- Identify the main participants in the systems development process(Solved)
Identify the main participants in the systems development process
Date posted: December 18, 2017. Answers (1)
- State the THREE advantages and THREE disadvantages of using CASE tools in the systems development process.(Solved)
State the THREE advantages and THREE disadvantages of using CASE tools in the systems development process.
Date posted: December 18, 2017. Answers (1)
- What is the role of the accountant in IS management, delivery and quality assurance
(Solved)
What is the role of the accountant in IS management, delivery and quality assurance
Date posted: December 18, 2017. Answers (1)
- What could lead to changes to the original project plan?(Solved)
What could lead to changes to the original project plan?
Date posted: December 18, 2017. Answers (1)