Posts

Showing posts with the label AND ITS TYPES

Array of Objects In C++

Image
                                                                                          ARRAYS An  array  in  C/C++  or be it in any programming language is a collection of similar data items stored at contiguous memory locations and elements can be accessed randomly using indices of an array.   There are two types of  array  in C++, which are : Single-dimensional array : It is a collection of elements of the  same data type  that are stored in a contiguous block of memory. Multi-dimensional array : It is an array that contains one or more arrays as its elements. We will see this in the next section  multidimensional arrays in C++ .

INHERITANCE

Image
TYPES OF INHERITANCE Inheritance is a method through which one class inherits the properties from its parent class. Inheritance is a feature in which one new class is derived from the     existing ones. The new class derived is termed a derived class, and the current class is termed a Parent or base class. Inheritance is one of the most essential features of  Object Oriented Programming .