NCERT Solutions Class 12 Computer Science Implementation of OOP Concepts in C++

Scroll down for PDF

NCERT Solutions Class 12 Computer Science Implementation of OOP Concepts 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 - Implementation of OOP Concepts in C++

Question 1: Observe the following C++ code and answer the question (i) and (ii): [Delhi, 2015]

class Traveller


long PNR;

char TName [20];

public :

Traveller ( ) //Function 1


void Book (long P, char N [ ])

//Function 2

{PNR = P, strcpy (TName, N);} void print () //Function 3

{cout<<PNR << TName <<endl;} ~Traveller ( ) //Function 4

{cout<<"Booking cancelled!"<<endl;

} ;

(i) Fill in the blank statements in Line 1 and Line 2 to execute Function 2 and Function 3

respectively in the following code: void main ( )


Traveller T;

___________ //Line 1

___________ //Line 2

}//Stops here


T. Book (1234567, “Ravi”);

//Line 1

T. Print ();

//Line 2

(1/2 Mark for writing each correct Function)

[ICBSE Marking Scheme 2015]

(ii) Which function will be executed at }//Stops here ? What is this function referred as ?

Function 4


~ Traveller ( )

It is a destructor function.

Please click on link below to download NCERT Solutions Class 12 Computer Science Implementation of OOP Concepts in C++.


Click on the text For more study material for Computer Science please click here - Computer Science

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

Simple tips to Excel in Examinations

We are entering the last quarter of the Academic Session. With examinations just around the corner, I am sure all of us are carrying a mixed bag of Stress, Excitement, and Anxieties!! So, first and foremost- Let’s be Positive and Futuristic! It’s most important to...

CBSE Board Exam Date Sheet of class 10th and 12th

The Central Board of Secondary Education (CBSE) released the Date sheet of Class 10 and Class 12th 2020 examination on the official website The board examination of Class 12 will be conducted from 15 February to 30 March 2020, while the board examination...

CBSE Counseling for Board exam 2020 starts today

The 23rd psychological Counseling starts 1st February (today) for The Class10 and Class12 CBSE students and their parents, by the Central Board of Secondary Education (CBSE).    This Counseling service is cost-free and this counseling service will be available every...

Studies Today