multiple inheritance meaning in English
多基因遗传
多重继承
Examples
- For example , a constraint may disallow multiple inheritance , or it may require that a class must have a particular type of attribute
例如,一个限制可能不允许多重继承,或者是它可能需要一个类必须具备一个特殊的属性类型。 - Although multiple inheritance is not allowed in classes , classes can implement multiple interfaces , which can effectively accomplish the same ends
虽然类中不允许有多重继承,但类可以实现多个接口,这样可以有效地实现同样的目的。 - Some of those features directly conflict with each other , like java s single inheritance model and c s multiple inheritance model , for example
这几种语言中甚至有许多特性是互相矛盾的。例如java只支持单一继承,而c + +则可以有多个父类。 - Perl supports single or multiple inheritance hierarchies , encapsulation , and polymorphism , but only through external modules or programmer agreement
Perl支持单一继承或多继承、封装以及多态,但这仅仅是通过外部模块或程序员的协同来实现的。 - Unlike languages that permit multiple inheritance , visual basic permits only single inheritance in classes ; that is , derived classes can have only one base class
与允许多重继承的语言不同, visual basic只允许类中有单一继承,即派生类只能有一个基类。