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 / sillu nu oru c coder

When a constructor is made private, object of that class
can not be created. That is called as Abstract class.
constructors can not be inherited. Moreover, when this
class is inherited, the base class object can not be
created. So we can not create the derived class object
also.



the above ans is irrelevant to the current situation,
here the thing is, a constructor cannot b private coz there
is no use of .

but if a situation occurs as such in the given prob, yes the
space is reserved for that useless private constructor.

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

hi, this is raju,iam studying b.tech 2nd year,iam want know about group1 and group2 details, and we can studying without going to any instutions? please help me.

1548


write a program to find 2^n+1 ?

1559


Why do we use polymorphism?

585


What is encapsulation selenium?

558


Prepare me a program for the animation of train

2010






What polymorphism means?

625


hi all..i want to know oops concepts clearly can any1 explain??

1685


What is the main purpose of inheritance law?

677


What is the benefit of oop?

576


Plese get me a perfect C++ program for railway/airway reservation with all details.

3433


What is the real time example of encapsulation?

602


What is destructor give example?

610


What is difference between class and object with example?

571


What are the 3 pillars of oop?

626


Why multiple inheritance is not allowed?

590