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


Please Help Members By Posting Answers For Below Questions

What are thread priorities and importance of thread priorities in java?

620


define the terminology association.

607


What is a numeric literal?

515


How do you sort a set in java?

506


What is java util function?

505






Is arraylist an object in java?

589


What is bom encoding?

540


What do you understand by java?

553


What is a dot notation?

542


What is arguments in java?

508


What is preparedstatement in java?

549


How do you define a variable?

525


What is difference between path and classpath variables?

556


When parseint method can be used?

529


Why string is a class?

536