Lecture 5 - Slide 10 : 40
Abstract Classes
An
abstract class
in C++ is a class with one or more
pure virtual functions
The C++ Prog. Lang. (3. edition)
:
Page 313
The C++ Prog. Lang. (4. edition)
: Page 597-599
Abstract class
A class is abstract if it has one or more
pure virtual functions
No objects can be created from an abstract class
No
abstract
modifiers are used on the class, nor on member functions
Pure virtual functions
A pure virtual function is marked with a
0
virtual void vf(double d) = 0;
A variant were vf is a pure virtual function in class A.