Skip to Main Content
Software Essentials
book

Software Essentials

by Adair Dingle
July 2014
Intermediate to advanced content levelIntermediate to advanced
436 pages
12h 27m
English
Chapman and Hall/CRC
Content preview from Software Essentials
Behavioral Design 201
not provide a keyword. Instead, the idea of “initializing a function to
zero”isemphasized. By setting the function header of a virtual function
“=0;”, a class designer species a virtual function without a denition,
that is, a pure virtual function. Any function that has no implementa-
tion is abstract and depends on derived classes to provide implementation
details. Since it has no implementation, a pure virtual function has an
entry in the class vtab initialized with the value “0.”
Example 7.14: C# Abstract Class
abstract class Shape // abstract easily noted with keyword
{ public virtual void rotate(int);
public virtual void draw();
}
In the classic Example 7.12, the Shape class is an abstract class and
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Software Architect’s Handbook

Software Architect’s Handbook

Joseph Ingeno
Economics-Driven Software Architecture

Economics-Driven Software Architecture

Ivan Mistrik, Rami Bahsoon, Rick Kazman, Yuanyuan Zhang
Software Architect Bootcamp

Software Architect Bootcamp

Raphael Malveau, Ph.D. Thomas J. Mowbray

Publisher Resources

ISBN: 9781439841204