NCERT Solutions Class 12 Computer Science Constructor and Destructor

Scroll down for PDF

NCERT Solutions Class 12 Computer Science Constructor and Destructor. 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 - Constructor and Destructor

Question 1: Write four characteristics of constructor function used in a class. [Delhi, 2014]

Answer: (i) A constructor function has no return type.

(ii) Name of constructor is same as that of class.

(iii) A constructor can be called while creating objects.

(iv) If there is no constructor declared in class then default constructor is invoked. (1/2 mark for each characteristic).

Question 2: What is a copy constructor ? Give a suitable example in C++ to illustrate with its definition within a class and a declaration of an object with the help of it. [Delhi, 2015]

Answer: A copy constructor is an overloaded constructor in which an object of the same class is passed as reference parameter,

class point

{ int x ;

public :

point ( )


x = 0 ;


point (Point &p) // copy constructor {x = p . x;} };

void main ( ) {

point p1;

point p2 (p1) ; // copy constructor is called here //


point p3 = p1 ; //Copy constructor is called here


Please click on link below to download NCERT Solutions Class 12 Computer Science Constructor and Destructor.


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

TIPS: Study habits for success

Being a student is fairly a difficult job. Alongside maintaining your curricular as well as extra-curricular activities adds more to it. Performance in academics is one of the major concerns. Every parent now tries to get their children more indulged in studies. Need...

Tips for exam preparation

Students often get nervous during their exams. The reason behind this nervousness is either a lack of confidence or a lack of preparedness. To overcome these fears students are advised to do their preparation in such a way that will retain their confidence. For this...

CBSE Board Introduces Experiential Learning for Student

CBSE Academic Session 2019-20: Board Introduces Experiential Learning for Student: The education sector has grown for some new changes. As per the latest updates the Central Board of Secondary Education has been good in making all the possible efforts to improve...

CBSE to conduct a voluntary test for class 11th and 12th

Nowadays students have the liberty to choose the field they seem to fit in. A few years back the problem was parents who burdened children with their own choices. On the other side, now students along with their parent's support are free to choose their field. Not any...

Error in the evaluation of answer sheets in CBSE

The education board has witnessed many events where invigilators are being suspended for allotting wrong marks to the students.  This has affected students mainly of classes X and XII in the 2019 CBSE Board Exams. The central board of secondary education has taken...


Central Board of Secondary Education, CBSE is to conduct the 10th and 12th Board Examination 2020 from February 15, 2020. Due to University Admissions, CBSE has shifted Board Exams dates from 1 March to February 15 from 2019. This year too CBSE would be making changes...

Studies Today