When a private constructer is being inherited from one
class to another class and when the object is instantiated
is the space reserved for this private variable in the
memory??
Answer Posted / balakishore
before invoking derived class constructor base-class
constructor should be called.
1. first base-class object will be created then derived-
class object will be created.
2. here the base class constructor is private, so derived-
class cannot invoke it.
No object is created in derived-class.
Is This Answer Correct ? | 7 Yes | 0 No |
Post New Answer View All Answers
given a set based questions and 5 questions based on it next data sufficiciency questions 2 and 2/3 english sentence completion with options very easy and 2 synononmys paragraph with 10 questions 10 minutes replace =,-,*,% with -,%,+,* type questions 5 3 questions lik following itssickhere itssickthere itssickhere istsickhere which is nt alike the others very easy
What is oops in programming?
How do you answer polymorphism?
How to improve object oriented design skills?
What is an advantage of polymorphism?
Which type does string inherit from?
What are the 3 principles of oop?
What is abstraction encapsulation?
Why multiple inheritance is not allowed?
How does polymorphism work?
How do you use inheritance in unity?
What is the example of polymorphism?
Where is pseudocode used?
What are properties in oop?
There are two base class B1,B2 and there is one class D which is derived from both classes, Explain the flow of calling constructors and destructors when an object of derived class is instantiated.