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
How do you bind variables?
How do you trim a space in java?
What is difference between stringbuffer and string?
Should a main method be compulsorily declared in all java classes?
What is lossy conversion in java?
What is the difference between call by reference and call by pointer?
A person says that he compiled a java class successfully without even having a main method in it? Is it possible?
What does a za z0 9 mean?
Explain the difference between the public, private, final, protected, and default modifiers?
Write a function to find out longest palindrome in a given string?
What is boolean used for?
Is string a class?
Is vector ordered in java?
What is class level lock ?
How do you sort in java?