Hi Guys
I need to implement an abstract base class shape containing following pure vitual methods
- void draw() const;
-ostream &print(ostream &o) const;
can anybody help me with it
I tried following is it correct?
[class Shape
{
public:
Shape()
{
}
virtual ~Shape()
{
}
virtual void draw() const = 0;
ostream & print(ostream &o) const = 0;
};
]
Thanks
Wanex