What is the sequence in which the constructors of class B are called when it is inherited from class A?
A.Class A is first, followed by Class B.
B. Class B is first, followed by Class A.
C. Class B's solely because it is the child class
D. Class A's solely because it is the parent class
Answer:A
What is the sequence in which the constructors of class B are called when it is inherited from class A?
A.Class A is first, followed by Class B. B. Class B is first, followed by Class A. C. Class B's solely because it is the child class D. Class A's solely because it is the parent class
Explanation: Class A is first, followed by Class B.