Lecture4
1 class Rectangle{ private: int numVertices; float *xCoord, *yCoord; public: void set(float *x, float *y, int nV); float area(); }; Inheritance Concept.
Copyright 2006 Oxford Consulting, Ltd1 February 2006 - 1 - C++ Inheritance Data Abstraction and Abstract Data Types Abstract Data Type Encapsulated data.
- 1 - C++ Inheritance Data Abstraction and Abstract Data Types – Abstract Data Type Encapsulated data type Accessible only through interface Properties.
Another Way to Define A Class - Inheritance
Another way to define a class
1 Another Way to Define A Class - Inheritance. 2 Inheritance Concept Rectangle Triangle Polygon class Polygon { private: int width, length; public: void.