adspace
Answer Posted / Abhinay Kandrap Kumar
A 'class' is a blueprint for creating objects in OOP. For example, the following is a simple class definition for a Rectangle: `class Rectangle {n private:n double width;n double height;n n public:n Rectangle(double w = 0, double h = 0) : width(w), height(h) { }n double GetArea() { return width * height; }n};`
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers