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
Explain the importance of import keyword in java?
What is string :: npos?
What is the difference between checked exception and unchecked exception?
Explain how to force the garbage collection in java.
What is class??
explain the difference between jdk and jvm?
Why java strings are immutable in nature?
Is a string literal?
How to use arraylist in java netbeans?
What about anonymous inner classes in java?
hr interview how many minutes asking question
How many java versions are there?
how we can create packages in java?
What is the impact of declaring a method as final?
Explain the meaning of java applet.