PDA

View Full Version : What is the difference between superclass and subclass?



priya01
06-12-2016, 11:11 PM
What is the difference between superclass and subclass?

pxljobs
08-18-2016, 12:38 AM
The super class is a class that is inherited,it is simple class generally.

The sub class is not inherited,it will inherit all the properties of super class,access all the methods variable of super class not vice versa.

aceamerican
02-06-2017, 05:09 AM
subclass inherits all the properties of a Super class.

raynowenhall
02-28-2017, 04:56 AM
The superclass is the class from which the current class inherits. And The subclass is the class which inherits from the current class. Thanks!

____
code inspection tools (https://www.checkmarx.com/2015/11/18/web-application-firewalls-wafs-ethical-hacker-exposes-his-secrets/)

oleevia
03-13-2017, 04:00 AM
Subclasses, Superclasses, and Inheritance. To recap what you've seen before, classes can be derived from other classes. The derived class (the class that is derived from another class) is called a subclass. The class from which it's derived is called the superclass.

damponting44
12-13-2017, 05:15 AM
Subclasses, Superclasses, Also Legacy. On recap the thing that you've seen before, classes might make inferred from other classes. The inferred class (the class that is determined from in turn class) is called An subclass.

jackar56
01-30-2018, 02:36 AM
Super class refers to a high level class, which passes some kind of attribute and procedures. This is usually followed down to the hierarchy to subclasses. Most of the time abstract super classes are referred to as master structures and almost most of the time no objects are created for it.
On the other hand, a subclass is that inherits different kinds of specifications and also behaviors. This could also include methods, procedures and variables from any other class.

hariandro001
09-25-2018, 10:29 AM
Every class have only one superclass and subclasses are derived all the fields, methods, etc., from it's superclass.

RH-Calvin
09-26-2018, 11:32 PM
A class that is derived from another class is called a subclass (also a derived class, extended class, or child class). The class from which the subclass is derived is called a superclass (also a base class or a parent class).

krishbenn
11-16-2018, 12:59 AM
A subclass derived all the field and methods from the Superclass.