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


Please Help Members By Posting Answers For Below Questions

Write an algorithm for quick sort?

617


How do you define a set in java?

513


What is contract between hashcode and equal method?

574


Give a practical example of singleton class usage?

593


What do you mean by composition in java?

572






What is java jit compilers?

562


Can sleep() method causes another thread to sleep?

569


What is variable length arguments in java?

518


How do you clear a list in java?

603


What is the difference between a factory and abstract factory pattern?

684


What are advantages and disadvantages of OOPs?

630


What is the difference between private & public & friendly classes?

552


What differences exist between iterator and listiterator?

573


Difference between collection, collection and collections in java?

568


What are the access modifiers available in java?

565