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 complexity and its types?
What is use of arraylist in java?
What are three advantages of using functions?
Why do we need hashmap in java?
explain the concept of virtual method invocation in polymorphism in detail?
How is string immutable in java?
What is ascii format?
What is diamond operator in java?
How to display names of all components in a Container?
What does singleton mean in java?
How do you remove spaces in java?
Is namespace same as package in java?
What is the difference between array and array list in java?
Which is bigger float or double java?
Is java 9 released?