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.