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
Explain about automatic type conversion in java?
What is final?
What are variable arguments or varargs?
What is exception handling in java?
What is thread start?
What is the difference between integer parseint and integer valueof?
Can static methods access instance variables in java?
What is port number in java?
How to perform selection sort in java?
What is the difference between an argument and a parameter?
How can you generate random numbers in java?
What is the different types of functions?
Explain access modifiers in java.
Define interface in java?
Can constructor be synchronized?