Does a class inherit the constructor of its super class?if
it does, how can you hide that constructor? if it doesnot
how can you call it from the sub class?
Answer Posted / pandu
Hi ,
constructor is never been inherited from superclass to
subclass.
we can call the Super class constructor in Sub class
by using
Super();
that too this stement should be first line in method.
Best Regards.
| Is This Answer Correct ? | 10 Yes | 1 No |
Post New Answer View All Answers
What is difference in between java class and bean?
How do you convert an int to a double in java?
Which sorting is used in arrays sort in java?
Is null false in java?
Explain the selection sort algorithm?
What does void * mean?
What is thread safe singleton?
Explain restrictions on using enum?
How are observer and observable used in java programming?
Explain the different forms of polymorphism?
What data type is string java?
What is the new line character?
What are recursive functions?
What are the three best choices for a development environment?
How do weakhashmap works?