C++ Objects and Classes

Classes are used to create your own custom reusable data types which are called objects.  A class is a blueprint that defines the variables (data) and the methods (functions) common to all objects(members) of a certain kind. For example, let us consider a class called fruits. This class can have different objects called apple,mango,banana etc. They are instances of the... Continue Reading →

C++ Functions

A function is a set of statements that do a particular task or procedure.There are 2 types of functions: a)library functions b)user defined functions. Here, we talk about user defined functions. For example, a function to add 2 numbers may be defined in the C++ code. When this function is called, 2 numbers are added... Continue Reading →

Powered by WordPress.com.

Up ↑