Given Class Sample Is Inherited By Class Sample 1 Which Are The #353
Given class sample is inherited by class sample 1. Which are the correct statements about construction of object of class sample?
This multiple choice question (MCQ) is related to the book/course gs gs108 CSharp. It can also be found in gs gs108 Object Oriented Concepts - Fundamentals of Inheritance - Quiz No.2.
Given class sample is inherited by class sample 1. Which are the correct statements about construction of object of class sample?
While creating the object firstly the constructor of class sample will be called followed by constructor of class sample 1
The constructor of only sample class will be called
While creating the object firstly constructor of class sample 1 will be called followed by constructor of class sample
The order of calling constructors depend on whether constructors in class sample and sample 1 are private or public