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 / karandeep malik
The question is very absurd. From where did we get the
variable stuff? And ya, how on earth do we get private
members/functions being inherited? Kamlesh is right in
saying that The whole idea stinks.
Is This Answer Correct ? | 8 Yes | 1 No |
Post New Answer View All Answers
What is encapsulation c#?
Why is oop useful?
How do you explain polymorphism?
What is an interface in oop?
write a program to find 2^n+1 ?
Is html an oop?
What is a class oop?
What is inheritance and how many types of inheritance?
What are main features of oop?
Which language is pure oop?
What is object in oops?
What are different types of JVM's? for example we use dalvik jvm for android then what about the remaining operating systems?
How do you answer polymorphism?
What is an example of genetic polymorphism?
INSTANCE FIELDS DECLARED private ARE ACCESSIBLE BY THE METHODS ONLY.CAN WE CHANGE THE private FIELD OF AN OBJECT IN A METHOD OF SOME OTHER OBJECT OF THE SAME CLASS?