| Share this post! | Vote this! |
|
Data Abstraction means something like this :
more...
//Shape provides no implementation of the draw functions//It abstracts the draw function from other shapes meaning that it//defines functions that all type of shapes should necessarily have.class Shape{public: virtual void draw()const=0;};class Ellipse : Shape{public: void draw()const{ API.drawEllipse(); }};




0 comments:
Post a Comment