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

When is the garbage collection used in Java?

880


What are keywords in java?

765


What does super keyword do?

783


what is the purpose of the runtime class?

779


What is the use of math abs in java?

740


How do you square a number in java?

773


Can private method static?

645


What is the simpletimezone class in java programming?

816


Is empty list java?

711


How do you escape in java?

806


Which one will take more memory: an int or integer?

971


How do you check if two given string are anagrams?

730


How many types of array are there?

737


What is array initialization in java?

701


What is widening and narrowing in java? Discuss with an example.

765