Object Oriented Programming(OOP) A class is like a blueprint of data member and functions and object is an instance of class . For example, lets say we have a class Car which has data members (variables) such as speed, weight, price and functions such as gearChange(), slowDown(), brake() etc.
What is object-oriented programming in C++ with example?
Object Oriented Programming(OOP) A class is like a blueprint of data member and functions and object is an instance of class . For example, lets say we have a class Car which has data members (variables) such as speed, weight, price and functions such as gearChange(), slowDown(), brake() etc.