What is difference between class and object with example?
Class is the design of a any program structure with name, variables and methods included in it as a group. When any class gets executed at runtime it gets object created equivalently. Such as when a class name is tree, the object it gets created as , tree of any type. if pen is a class, then the object of pen can be, few we name it..
| Is This Answer Correct ? | 0 Yes | 0 No |
What do you mean by binding of data and functions?
Get me a number puzzle game-program
Why do we use virtual functions?
Why do we need oop?
Are polymorphisms mutations?
Following are the class specifications: class {int a}; class {int b}; Using friend funtion,calculate the max of two objects and display it.
#include <iostream> using namespace std; int main() { int a = 3; int c[5][5]; for (int x=0;x<5;x++) { for (int y=0;y<5;y++) { c[x][y] = x*y; } } cout << c[a][2]; }
Plese get me a perfect C++ program for railway/airway reservation with all details.
Tell me the scenario,Where we can use interfaces or Abstract class.And What is the difference between interfaces and abstract class?
what is the difference between class and structure in C++?
who is the founder of c++?
what is object slicing?