When class B is inherited from class A, what is the order in which the constructers of those classes are called. | CPP MCQs

A.     Class A first Class B next
B.     Class B first Class A next
C.     Class B's only as it is the child class
D.     Class A's only as it is the parent class

Ans: A

0 comments:

Post a Comment

Blogger news