Results 1 to 10 of 10

Thread: What is the difference between superclass and subclass?

  1. #1
    Registered
    Join Date
    May 2016
    Posts
    39

    What is the difference between superclass and subclass?

    What is the difference between superclass and subclass?

  2. #2
    Registered pxljobs's Avatar
    Join Date
    Jul 2016
    Location
    Bangalore
    Posts
    290
    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.

  3. #3

  4. #4
    Registered
    Join Date
    Feb 2017
    Posts
    10
    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

  5. #5
    Junior Registered
    Join Date
    Feb 2017
    Posts
    4
    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.

  6. #6
    Registered
    Join Date
    Nov 2016
    Posts
    649
    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.

  7. #7
    Registered
    Join Date
    Oct 2016
    Posts
    270
    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.
    Best Android Training | Devops Training | SQL Server Training and many more IT courses.

  8. #8
    Every class have only one superclass and subclasses are derived all the fields, methods, etc., from it's superclass.

  9. #9
    Registered RH-Calvin's Avatar
    Join Date
    Mar 2017
    Location
    Forum
    Posts
    1,667
    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).
    Cheap VPS Hosting | VPS Starting from $12 PER Year
    Cheap Dedicated Server | Unmetered Bandwidth | Free Setup and IPMI

  10. #10
    Registered
    Join Date
    Jul 2018
    Posts
    51
    A subclass derived all the field and methods from the Superclass.

Similar Threads

  1. what is the difference between ppc and cpc
    By Nexevo Technologi in forum Search Engine Optimization
    Replies: 4
    Last Post: 04-21-2017, 03:54 AM
  2. What is the difference between CPA and CPC?
    By Shivangi Panwar in forum Search Engine Optimization
    Replies: 1
    Last Post: 06-20-2016, 03:45 AM
  3. What are the Difference between SMO and PPC
    By Nexevo Technologi in forum Search Engine Optimization
    Replies: 0
    Last Post: 12-01-2015, 05:10 AM
  4. What is the Difference between PPC and SMO
    By Nexevo Technologi in forum Search Engine Optimization
    Replies: 0
    Last Post: 09-30-2015, 08:12 AM
  5. .com, .net, .us and .info any difference?
    By organ in forum Search Engine Optimization
    Replies: 7
    Last Post: 04-26-2006, 12:01 AM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •