12

CHAPTER

Binding, Polymorphismand Virtual Functions

CHAPTEROUTLINE —•    12.1 Introduction
—•    12.2 Binding in C++
—•    12.3 Pointer to Derived Class Objects
—•    12.4 Virtual Functions
—•    12.5 Rules for Virtual Functions
—•    12.6 Array of Pointers
—•    12.7 Pure Virtual Functions
—•    12.8 Abstract Classes
—•    12.9 Working of Virtual Functions
—•  12.10 Virtual Functions in Derived Classes
—•  12.11 Object Slicing
—•  12.12 Constructors and Virtual Functions
—•  12.13 Virtual Destructors
—•  12.14 Destructors and Virtual Functions

12.1 INTRODUCTION

This topic is absolutely new and those who are new to object-oriented programming, must study this chapter in detail. An attempt has been made to illustrate ...

Get Object-Oriented Programming with ANSI and Turbo C++ now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.