继承 Inheritance

1 英文翻译

继承:英文原文 Inheritance

2 Inheritance的含义

Inheritance is an important pillar of OOP(Object-Oriented Programming). The capability of a class to derive properties and characteristics from another class is called Inheritance. When we write a class, we inherit properties from other classes. So when we create a class, we do not need to write all the properties and functions again and again, as these can be inherited from another class that possesses it. Inheritance allows the user to reuse the code whenever possible and reduce its redundancy.

写评论

  • 链接: 选填
  • 昵称: 必填
  • 验证码: z0ma