Can we inherit the constructor in a Class?please give one
example.
Answer Posted / sanketh
we cannot inherit constructors.
because if we declare a constructor it must be a same name
as its class name, but two class must have same name
| Is This Answer Correct ? | 16 Yes | 4 No |
Post New Answer View All Answers
Why are the methods of the math class static?
Can we create constructor in abstract class ?
What does localhost mean?
What is java object name?
What is the use of singleton?
Why string is not thread safe?
Why should I use abstract class?
What is difference between next () and nextline () in java?
What is the relationship between class and object?
What is an object's lock and which object's have locks in java programming?
What will be the initial value of an object reference which is defined as an instance variable?
Name few java 8 annotations ?
Differences between external iteration and internal iteration?
What are predicates in java 8?
Why we use methods in java?