Question 56
What is the name of the process to create a new object in C++?
- a. Declaration
- b. Initialization
- c. Instantiation
- d. Mutation
Tag: 1 Object Oriented Programming
Question 58
Which one of the following statements about inheritance is correct?
- a. If class A is extended by B, then B is a superclass of A.
- b. A class cannot extend a class and implement an interface simultaneously.
- c. A class can directly extend any number of classes.
- d. A class can implement any number of interfaces.
Tag: 1 Object Oriented Programming
Question 65
Which of the following is true about a concrete class?
- a. A concrete class must implement all inherited abstract methods.
- b. A concrete class can be declared as abstract.
- c. If a concrete class inherits an interface from one of its super classes, then it must declare an implementation for all methods defined in that interface.
- d. A concrete method that implements an abstract method must match the method declaration of the abstract method exactly.
- Tag: Object Oriented Programming
Question 79
Which of the following is not an object-oriented concept?