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


Please Help Members By Posting Answers For Below Questions

What is a wrapper method?

717


What is the generic function?

705


What does it mean that strings are immutable?

807


Can an object subclass another object?

720


How do you use find and replace?

664






How many times finalize method will be invoked? Who invokes finalize() method in java?

750


What is the set interface in java programming?

781


How to create packages in java?

686


What are the two types of java programming?

717


Is java se open source?

730


When object is created and destroyed?

803


What is hashmap and map?

706


Why method overriding is used?

734


What is the length of a string?

708


Does substring start with 0?

718