hoe can u call a constructor of a private classs to other
inherited claa??
Answer Posted / ditendra
class can't be private if it is not a inner class .
we can call constructor of inherited class from private
inner class using super()method.
| Is This Answer Correct ? | 18 Yes | 0 No |
Post New Answer View All Answers
What is the console in java?
Why java does not support pointers?
What is local class in java?
What is unsigned char?
What are constants and how to create constants in java?
What does exp mean in math?
Difference between arraylist and vector.
What are the rules for naming an array?
How java uses the string and stringbuffer classes?
Difference between process and thread?
What is classes in java?
What does string [] args mean?
Can we have any code between try and catch blocks?
What is meant by attribute?
Is there a jre for java 11?