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 / veena
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.
| Is This Answer Correct ? | 0 Yes | 2 No |
Post New Answer View All Answers
Write a java applet that computes and displays the squares of values between 25 and 1 inclusive and displays them in a TextArea box
Can we define a class within the interface?
Can main method override?
How do you use inheritance in unity?
What is difference between pop and oop?
What is this pointer in oop?
What is solid in oops?
What is multilevel inheritance explain with example?
Can you inherit a private class?
What is overriding in oops?
What makes a language oop?
What is encapsulation selenium?
Which method cannot be overridden?
What is the highest level of cohesion?
What are main features of oop?