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


Please Help Members By Posting Answers For Below Questions

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

2147


What is oops in programming?

568


How do you answer polymorphism?

577


How to improve object oriented design skills?

569


What is an advantage of polymorphism?

596






Which type does string inherit from?

616


What are the 3 principles of oop?

619


What is abstraction encapsulation?

657


Why multiple inheritance is not allowed?

584


How does polymorphism work?

635


How do you use inheritance in unity?

590


What is the example of polymorphism?

559


Where is pseudocode used?

565


What are properties in oop?

609


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.

1458