Can a class inherit the constructors of its superclass?
Answer Posted / ranganathkini
No a subclass cannot inherit the constructors of its
superclass. Constructors are special function members of a
class in that they are not inherited by the subclass.
Is This Answer Correct ? | 17 Yes | 3 No |
Post New Answer View All Answers
What is a wrapper method?
What is the generic function?
What does it mean that strings are immutable?
Can an object subclass another object?
How do you use find and replace?
How many times finalize method will be invoked? Who invokes finalize() method in java?
What is the set interface in java programming?
How to create packages in java?
What are the two types of java programming?
Is java se open source?
When object is created and destroyed?
What is hashmap and map?
Why method overriding is used?
What is the length of a string?
Does substring start with 0?