Hey there! any question in your mind? Ask It Now!.

Popular Categories





What is super class in java

+5 votes
129 views
asked in Programming by mannu (990 points)
I want to know the concepect of super class in java?

1 Answer

0 votes
answered by amit_pammu Expert (5,030 points)

A superclass is a class that has been extended by another class. It allows the extending class to inherit its state and behaviors.

 

 

example:

public class Person

 {
 
 } 

A new class can be created by extending this class:

 public class Employee extends Person
 {
 
 } 

The Person class is said to be the superclass of the Employee class.

hope you got the point!

Related Questions

+7 votes
1 answer 504 views
0 votes
0 answers 153 views
asked in Programming by vimal jain
0 votes
0 answers 78 views
0 votes
1 answer 116 views
0 votes
1 answer 65 views
+1 vote
1 answer 802 views
+3 votes
1 answer 679 views
+2 votes
2 answers 792 views
–1 vote
0 answers 116 views
+3 votes
1 answer 364 views

Not a Member yet?

Ask to Folks Login

My Account
756 Folks are online
59 members and 697 guest online
Your feedback is highly appreciated