Exercise: Inheritance

Questions for: Inheritance

Creating a derived class from a base class requires fundamental changes to the base class.
A:
True
B:
False
C:
D:
Answer: B
No answer description is available. Let's discuss.
There is no multiple inheritance in C#.NET. That is, a class cannot be derived from multiple base classes.
A:
True
B:
False
C:
D:
Answer: A
No answer description is available. Let's discuss.
A class D can be derived from a class C, which is derived from a class B, which is derived from a class A.
A:
True
B:
False
C:
D:
Answer: A
This is known as multiple levels of inheritance.
Private members of base class cannot be accessed by derived class member functions or objects of derived class.
A:
True
B:
False
C:
D:
Answer: A
No answer description is available. Let's discuss.
The size of a derived class object is equal to the sum of sizes of data members in base class and the derived class.
A:
True
B:
False
C:
D:
Answer: A
No answer description is available. Let's discuss.
Ad Slot (Above Pagination)
Quiz