hoe can u call a constructor of a private classs to other
inherited claa??



hoe can u call a constructor of a private classs to other inherited claa??..

Answer / 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

More Core Java Interview Questions

How many types of methods are there?

0 Answers  


Explain the features of java?

0 Answers  


What we have to do, when we don't want to implement all methods of an interface?

5 Answers  


what is difference between abstract factory and factory design patterns?

0 Answers  


Explain the differences between public, private, protected and static?

4 Answers  






What is the function of static in java?

0 Answers  


What is an example of a conditional statement?

0 Answers  


What are loops in java?

0 Answers  


What is a method ?

6 Answers  


How to call one constructor from the other constructor ?

0 Answers  


WHAT IS THE SCOPE FOR COREJAVA...? IS JAVA ONLY CORE JAVA ?

2 Answers  


What is the abstraction?

0 Answers  


Categories