Tous les livres

Professionnel

Applis À propos Coach Connexion Commencer la lecture

Computer Science · Glossaire

Qu'est-ce que « Pure virtual function, abstract class » ?

Aussi appelé : pure virtual function · abstract class

Definition 3.7 University Computer Science — Year 2 · Chapitre 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.

Lire dans le chapitre →