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
Hi.... I applied for the post of scientific officer/Engineer-SB(Programmer).Please post the syllabus and sample papers.
Given a singly linked list, determine whether it contains a loop or not without using temporary space?
What are design patterns and please explain?
Is an array a vector?
Is list ordered in java?
Is alive in java?
What is variable declaration and definition?
What does you mean in math?
how to write a server program and sending the mails to the server using smtp protocol please help me
What do you mean by aggregation?
Is a copy constructor?
Should database connections be singleton?
Realized?
How large is a boolean?
What are the important methods of java exception class?