+ 7

What is a superclass

what is a superclass.i want to know it's meaning and also if you are a good hearted person give a upvote to my ques as I want to unlock a badge and burn my friends out of jealousy.but please also tell about superclass with an example.

5th Nov 2017, 8:38 AM
Shubh Mehrotra
Shubh Mehrotra - avatar
4 Answers
+ 8
@Tony Stark, a superclass is a base class, a class that a subclass derived from, so if you create a class by extending another class, the class you create is a subclass, and the other class (the one you extended) is the superclass. (Edit) You can use the Search bar to seek such answers too, I suppose :) Hth, cmiiw
5th Nov 2017, 9:33 AM
Ipang
+ 7
class whose properties r inherited(also known as base /parent class) eg: class dog extends animal { } here,animal is superclass
6th Nov 2017, 12:39 PM
Shwetha
Shwetha - avatar
+ 5
@tony: there a good and bad ways to unlock a badge. This is a middle one. not good enough for me. I will follow you and see what you are doing. yes i am middle hearted i know...
5th Nov 2017, 10:47 AM
Oma Falk
Oma Falk - avatar