What is class in oop with example?
Answer / 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 |
What are different oops concepts?
What is polymorphism in oops?
Does c++ support multilevel and multiple inheritance?
Base class has two public data members. How can i derive a new class with one datamember as public and another data member as private?.
What is the real life example of polymorphism?
Give two or more real cenario of virtual function and vertual object
What is super in oop?
Why do we need oop?
what is the need of abstraction? what is abstraction?what is the abstraction for stack?
What is virtual Function.
What is polymorphism in oop example?
program for insertion ,deletion,sorting in double link list