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
Write an algorithm for quick sort?
How do you define a set in java?
What is contract between hashcode and equal method?
Give a practical example of singleton class usage?
What do you mean by composition in java?
What is java jit compilers?
Can sleep() method causes another thread to sleep?
What is variable length arguments in java?
How do you clear a list in java?
What is the difference between a factory and abstract factory pattern?
What are advantages and disadvantages of OOPs?
What is the difference between private & public & friendly classes?
What differences exist between iterator and listiterator?
Difference between collection, collection and collections in java?
What are the access modifiers available in java?