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 scanner in java?
What is numeric data type?
What does next mean in java?
Can a class be private?
What are the two types of java?
What is the default value of the local variables?
Why java is call by value?
What is the destroy method?
What is abstraction in java?
What’s the difference between callable and runnable?
Give an example of call be reference significance.
Explain Basics of OOP Language in java
How to check if linked list contains loop in java?
Which class cannot be a subclass in java?
What is an class?