Explain about Superclass and Subclass?

Answer Posted / mike

The original object or an entity class becomes a superclass of the original object or entity when a subclass has been derived one or more occurances inheriting the attributes of the superclass.

Is This Answer Correct ?    1 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can we have 2 main methods in java class?

543


What is the benefit of inner classes in java?

614


Which method must be implemented by all threads?

724


When will you define a method as static?

561


What is the output of the below java program?

595






Explain the features of interfaces in java?

558


What do you mean by an object in java?

632


What is "this" keyword in java? Explain

663


Is {a, n, d} a palindrome? If you are given a random string, is it a palindrome or not?

620


State the merge-sort principle and its time complexity.

574


Is vector ordered in java?

540


What is classname class in java?

535


What is java reflection api?

560


What is compareto?

544


What is the purpose class.forname method?

560