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

Scroll down to download pdf file

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 CBSE News

  • As all you know, the results of most state boards declared till the month of June, all intermediate or higher secondary pass students should think that how to choose the best career option for a bright and successful future. While some young people want to become doctors or engineers, others want to be teachers. If you are one of the third students to graduate to qualify for BEd and other teacher...
  • The Central Board of Secondary Education (CBSE) has decided to drop some of the chapters from the class 10th Social Science book.  As per the new curriculum, the three chapters of political studies and two environmental texts are not included in the CBSE board examinations. However, these chapters are still teach in the classes. They are just separate from the CBSE board examinations.  Download...
  • The Indian Board of Education is divided into two boards, CBSE and ICSE. According to the different features of the boards people choose to study in the board the prefer more. The Central Board of Secondary Education (CBSE) is a national level board of education conducted and run by the Union Government of India. It was formed 56 years ago on 3rd November 1962. It is for public and private...
  • As per the latest updates, the Central Board of Secondary Education is thinking to make changes in the regular pattern of practical examinations being conducted for students in the CBSE affiliated schools. The Board has decided to conduct the practical examinations at external examination centres. According to the information released by the board, the board is expected to conduct the practical...
  • As per the latest updates, the Central Board of Secondary Education (CBSE) is thinking to stop many of its subjects. There are existing subjects in which students don’t take interest at all. In past few years there are subjects which are not entertained by the students so CBSE feels that these are better to shut these kind of subjects. The CBSE board has asked for suggestions from the schools...
  • We all know CBSE has conducted every year board exams for class 10. As soon as we land in class 10, everyone starts suggesting different things. They tell us to study hard because this is the first step towards your career. If you are willing to take science stream in class 11th and 12th, then it is very important to get good marks in class 10. So that you can easily take your stream. Check out...
  • “Education is what remains after one has forgotten what one has learned in school”-AlbertEinstein The statement is indeed true but doesn’t mistake it to be limited to academic education. It clearly implies both types of education-Academic and Non-Academic. Academic education nurtures the brain with the study related knowledge but non-academic helps to recognize the skills one possesses and...