Can a class inherit the constructors of its superclass?
Answer Posted / shaziya parveen
No, a class can not inherit the constructor of its
superclass. This subclass can inherit the instance
variables and tha methods of the super class.
Using 'super' keyword a sub class can inherit the
constructors. This is only the solution.
| Is This Answer Correct ? | 0 Yes | 4 No |
Post New Answer View All Answers
What is multithreading and its advantages?
Difference between method overloading and method overriding in java ?
Can constructor be protected in java?
What is string value?
Can we store variables in local blocks?
Can we create object of static class?
Explain list interface?
Define interface in java?
What is meant by flickering?
What are 3 data types?
Explain which of the following methods releases the lock when yield(), join(),sleep(),wait(),notify(), notifyall() methods are executed?
Why we cannot override static method?
What is an example of declaration?
What is wrapper class example?
Java is pass by value or pass by reference? Explain