Q20/ For Cat and Animal class, the correct way of inheritance is Select one: a. Both are
Question:
Q20/
For Cat and Animal class, the correct way of inheritance is
Select one:
a. Both are correct way
b. class Cat: public Animal
c. None is correct way
d. class Animal: public Cat
Q21/
What happens if a user forgets to define a constructor inside aclass?
Select one:
a. Error occurs
b. Compiler provides a default constructor to avoidfaults/errors
c. Objects are not created properly
d. Segmentation fault
Q22/
Correct way of creating an object of a class called Caris
Select one:
a. lecture obj;
b. student obj;
c. Car =obj;
d. Car obj;
Q23/
base class and derived class relationship comes under
Select one:
a. None
b. Inheritance
c. control statment
d. Polymorphism
Q25/
Which is Abstract Data Type in C++
Select one:
a. float
b. class
c. int
d. array
Microeconomics An Intuitive Approach with Calculus
ISBN: 978-0538453257
1st edition
Authors: Thomas Nechyba