NCERT Solutions for Class 12 Implementation of OOP Concept in C++

The Object Oriented Programming can be implemented through class in C++. A class is a group of the same type of object.  A class in C++ consists of data and its associated functions, these data and functions are known to be the member of the class. In this chapter, the students will also learn about objects. There are two types of objects local object and global object. An object is called a global object when it is declared outside all the function bodies. An object is called a local object if it is declared within the body of any function.

Example

Local and Global Variable

Class my_ncert_solutions{

                                              int a;

                                              public;

                                              void fn ()

                                       {

                                               a= 6;

                                                    cout <<”Solutions is” <<a;

                                                  }

                                                }

                                       my_ncert_solutions ob1; //Global object

                                         void ncert()

                         {

           my_ncert_solutions // Local Object

                                     }

void main ()

{

ob1.read();

ob2.read();

}

To master the concepts of Implementation of OOP concepts in C++ students are advised to solve the exercise questions provided at the end of each chapter. Solving the exercise questions will help the students to understand the implementation of OOP concepts in a better and easy way. Visit the download link to download the free PDF of NCERT solutions for class 12 implementation of oop concept in c++.

Leave Your Answer