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

What is advantage of java?

547


Why javac is not recognized?

530


How many types of gc are there in java?

572


How do I enable java in safari?

554


Can you extend singleton class?

606






What do you mean by garbage collection used in java?

582


How is hashset defined in java?

523


what is predefined function in java?

543


What are constants and how to create constants in java?

560


Explain working of call by reference function invoking.

594


Why for each loop is used?

508


What does regex mean?

571


What is boolean law?

522


How can we make a class singleton?

584


Can you explain the usages of class.forname()?

613