NCERT Solutions Class 12 Computer Science Object Oriented Programming in C++

NCERT Solutions Class 12 Computer Science Object Oriented Programming in C++. NCERT book for Computer Science in class 12 is strongly recommened by teachers and the CBSE and NCERT boards. Please download the NCERT solutions for class 12 Computer Science free in PDF made by teachers of the best schools in India. These solutions are carefully compiled to give detailed understanding of the concepts and also steps of solutions. The NCERT solutions are free to download in pdf format. Please refer to the download link below to download the pdf file and also refer to other chapters and subjects to get the solutions to Computer Science NCERT book questions and exercises.

Chapter - Object Oriented Programming in C++

Question 1: Differentiate between data abstraction and data hiding. [Delhi, 2015]

Answer: Data hiding can be defined as the mechanism of hiding the data of a class from the outside world. This is done to protect the data from any accidental or intentional access. Data hiding is achieved by making the members of the class private. Data abstraction refers to, providing only essential information to’ the outside world and hiding their background details. Members defined with a public label are accessible to all parts of the program. The data abstraction view of a type is defined by its public members.

Question 2: How encapsulation and abstraction are implemented in C++ language ? Explain with an example. [CBSE SQP 2015]

Answer: Abstraction refers to the act of representing essential features without including the background details or explanations. Encapsulation is wrapping up of data and function together in a single unit. We can say that encapsulation is way of achieving abstraction. Both these concepts are implemented in C++ in the form of a class. In a class data and function members are wrapped together. Only essential features are shown to the outside world in the form of member functions with public mode of accessibility. [1]

Example: [1]

class Rectangle


int L, B;

public: void Input()




void Output()





In this example:

Data and member functions are together encapsulated Only Input ( ) and Output ( ) functions are visible outside the class which can only can be accessed outside the class using objects of the same class – Abstraction

Please click on link below to download NCERT Solutions Class 12 Computer Science Object Oriented Programming in C++.



Click to View or Download pdf file
Click for more Computer Science Study Material

Latest NCERT & CBSE News

Read the latest news and announcements from NCERT and CBSE below. Important updates relating to your studies which will help you to keep yourself updated with latest happenings in school level education. Keep yourself updated with all latest news and also read articles from teachers which will help you to improve your studies, increase motivation level and promote faster learning

Board Exams Class 10 and 12 Notification by CBSE

Because of the prevailing condition of spread of COVID-19 pandemic in the country, special efforts are required for conducting examinations in a safe manner. As a number of students have shifted from the district of their school to some other district in the country,...

CBSE Board Exams in July Press Release

CBSE has released press note for the dates for the CBSE Board exams for Class 10. CBSE said “With regards to conduct of Class X examinations several queries are being received by the CBSE. In this context, it is once again reiterated that remaining examinations of...

Board Exams Class 10 and Class 12 Datesheet 2020

CBSE has announced the datesheet for the remaining exams of class 10 and class 12 exams. The exams are going to start in July. The class 10 and 12th board exams will be conducted for the remaining 29 papers from July 1 to July 15, 2020, at various centers nominated by...

Board Cancelled Official CBSE Statement

Keeping in view the requests received from various State Governments and the changed circumstances as on date, following has been decided- 1. Examinations for classes X and XII which were scheduled from 1st July to 15th, 2020 stand cancelled. 2. Assessment of the...

CBSE advisory on student marks

CBSE has issued a public advisory for all students to be careful from unscrupulous persons impersonating themselves as officers/officials of CBSE. These people have been contacting parents and have been telling them that they have access to student marks data for Board...

CBSE Online Training for Teachers 2020

It is clear that this pandemic has utterly disrupted an education system that many assert was already losing its relevance. Enhancing professional development digitally is a need in the times of COVID-19, where social distancing and remote interactions is the new...

Studies Today