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
When a lot of changes are required in data, which one should be a preference to be used? String or stringbuffer?
Does treeset allow null in java?
What is the purpose of lambda expressions?
Explain about anonymous inner classes ?
Which sorting is used in arrays sort in java?
Give us the name of the list layoutmanagers in java?
What do you mean by object?
What is the argument in java?
Which list is sorted in java?
What are the four pillars of java?
What is the functionality of the stub?
Which browsers work with java?
What is java autoboxing?
Which programming language is most secure?
what is the final keyword denotes in java?