NCERT Solutions Class 12 Computer Science Inheritance

Scroll down for PDF

NCERT Solutions Class 12 Computer Science Inheritance. 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 - Inheritance

Question 1: Answer the questions (i) to (iv) based on the following:

class ITEM {

int ID;

char IName[20];

protected:

float Qty;

public: ITEM();

void Enter();

void View();

};

Class TRADER; {

int DCode;

Protected:

char Manager[20];

public: TRADER();

void Enter();

void View();

}; class- SALEPOINT :

public ITEM,

private TRADER

{

Char Name[20],

Location[20];

public: SALEPOINT();

void EnterAll();

void ViewAll();

};

(i)Which type of Inheritance out of the following is illustrated in the above example?

- Single Level Inheritance

- Multi Level Inheritance

- Multiple Inheritance 

(ii)Write the names of all the data members, which are directly accessible from the member functions of class SALEPOINT.

(iii)Write the names of all the member functions, which are directly accessible by an object of class SALEPOINT.

(iv)What will be the order of execution of the constructors, when an object of class SALEPOINT is declared?

Аnswer: 1. Multiple Inheritance

2. Name, Location, Manager, Qty

3. EnterAll ( ) , VeiwAll ( ) , Enter ( ) ,ViewO

4. ITEM ( ) , TRADER (), SALEPOINT ()

Please click on link below to download NCERT Solutions Class 12 Computer Science Inheritance.

Tags: 


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

CBSE and Microsoft join hands to build capacity for AI learning for schools

Central Board of Secondary Education and Microsoft join hands to build capacity for AI learning for schools : The officials from the Central Board of Secondary Education have announced that they have partnered with Microsoft India to conduct several capacity building...

CBSE will have more practicals

CBSE board has made a bigger announcement regarding 2020 board examinations for class 12. Board has decided that subjects like humanities, History, English and Hindi will also have practical exams like Chemistry, Biology, and Physics. As per, CBSE official's statement...

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 DATE SHEET 2020

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...

Guidelines On Reducing Weight Of School Bags

GUIDELINES ON REDUCING WEIGHT OF SCHOOL BAGS In this competitive world, where students are giving their best, an unnoticed threat rides on our back. Heavy School Bags are a serious yet unresolved threat to the health and wellbeing of the young ones. The medium of their...

CBSE class 10, 12 board exam important information

CBSE class 10, 12 board exam: important information to prevent problems for students : The Central Board of Secondary Education (CBSE) has issued an advisory for the students of class 10 and class 12 board. As per the notice, the registration of students appearing in...

×
Studies Today