a) While creating the object firstly the constructor of class sample will be called followed by constructor of class sample 1
b) The constructor of only sample class will be called
c) While creating the object firstly constructor of class sample 1 will be called followed by constructor of class sample
d) The order of calling constructors depend on whether constructors in class sample and sample 1 are private or public
Given class sample is inherited by class sample 1. Which are the correct statements about construction of object of clas
-
answerhappygod
- Site Admin
- Posts: 899604
- Joined: Mon Aug 02, 2021 8:13 am
Given class sample is inherited by class sample 1. Which are the correct statements about construction of object of clas
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!