Base Class

Definition & Meaning

Last updated 23 month ago

What is Base Class?

A base elegance is a category, in an Object-orientated Programming Language, from which other instructions are derived. It allows the introduction of different lessons which could reuse the Code implicitly inherited from the base magNiFicence (besides Constructors and Destructors). A Programmer can extend base elegance Functionality by means of including or Overriding contributors relevant to the derived elegance.

A base magnificence can also be referred to as discern elegance or superClass.

What Does Base Class Mean?

A magnificence derived from a base magnificence inherits both inFormation and conduct. For Instance, “vehicle” may be a base elegance from which “car” and “Bus” are derived. Cars and buses are both cars, but each represents its own specialization of the car base elegance.

A base magnificence has the subsequent houses:

  • Base instructions are robotically Instantiated earlier than derived training.
  • The derived magnificence can communicate to the base magnificence at some point of instantiation by using calling the bottom magnificence Constructor with an identical Parameter listing.
  • Base magnificence participants may be Accessed from the Derived Class through an specific forged.
  • If summary techniques are defined in a base class, then this class is considered to be an summary elegance and the non-summary derived elegance need to Override these Methods.
  • Abstract base training are created using the “abstract” Keyword in its Statement and are used to save you direct iNitiation the use of the “new” key-word.

Share Base Class article on social networks

Your Score to Base Class article

Score: 5 out of 5 (1 voters)

Be the first to comment on the Base Class

790- V5

tech-term.com© 2023 All rights reserved