Todos los libros

Profesional

Apps Acerca de Coach Iniciar sesión Empezar a leer

Computer Science · Glosario

¿Qué es Pure virtual function, abstract class?

También llamado: pure virtual function · abstract class

Definition 3.7 University Computer Science — Year 2 · Capítulo 3 — Inheritance and Polymorphism

A virtual function declared with = 0, as virtual double area() const = 0;, is a pure virtual function: it has no version in its class, and every derived class that is to be instantiated must override it. A class with at least one pure virtual function, declared or inherited and not overridden, is an abstract class: no object of it can be created, only objects of derived classes that override every pure function.

Leer en el capítulo →