Web Applications Development

C++

References

Memory Address

Pointers

OOP With C++

Object-oriented programming is based on creating objects that contain both data and functions.

Classes and Objects

A class is a template for objects, which is a user-defined data type. It works as a "blueprint" for creating objects, and an object is an instance of a class. 

When objects are created, they inherit all the variables and functions from the class which created the object.

Example:     An Animal is a class, 
                     A Lion is an object created from the Animal Class.
                     Lion has attributes, such as weight and gender, and functions, such as eat, sleep and roar.


 

References

  Educational Resources



No comments:

Post a Comment

Popular Posts