Difference between Superclass and Subclass?

Answer Posted / ah socheat

super class is a simple class that generally;
sub class is a class that inheritance from super class; and can use method or data type in super class(if method or datatype use as public);

Is This Answer Correct ?    13 Yes 7 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the major drawback of internal iteration over external iteration?

805


Write a program to print fibonacci series up to count 10.

712


Can we restart a dead thread in java?

756


Is null in java?

765


How can constructor chaining be done by using the super keyword?

873


What is stringjoiner ?

754


What is the purpose of the System class?

787


String and stringbuffer both represent string objects. Can we compare string and stringbuffer in java?

767


Why is it important to initialize a variable?

753


What is oop principle in java?

757


Is main is a keyword?

801


Why synchronization is important?

796


How do you use find and replace?

712


How many bits are used to represent unicode, ascii, utf-16, and utf-8 characters in java programming?

807


What is the finalize method do?

837