inherit

Inheritance is the process of creating a new class by obtaining inheritance information from an existing class.

A class that provides inheritance information is called a parent class (superclass, base class).

A class that gets inheritance information is called a subclass (derived class).

Inheritance gives a certain continuity to a changing software system. Inheritance is also an important means of encapsulating variable factors in a program.

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=324496154&siteId=291194637