NCERT Solutions Class 12 Computer Science Inheritance

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

CBSE Reduced Syllabus Class 11 and 12

CBSE has announced major reduction in the syllabus for class 11 and class 12. There has been major changes too in the main syllabus for class 11 and 12. The prevailing health emergency in the country and at different parts of the world as well as the efforts to contain...

Re verification of Class 12 Board Exams Marks

Modalities and Schedule for Senior Secondary School (Class XII) Examinations, 2020 in the subjects whose examinations have been conducted by CBSE for the processes of (I) Verification of Marks (II) Obtaining Photocopy of the Evaluated Answer Book(s) (Ill) Re-evaluation...

FAQs CBSE Board Exam Results Class 10 and 12

FAQs CBSE Board Exam Results Class 10 and 12 Q.1. What does the term RT in the marksheet mean? Ans.The term RT means REPEAT IN THEORY. This is the term used from 2020 instead of FAIL IN THEORY(FT) Q.2. What does the term RP in the marksheet mean? Ans.The term RP means...

Re verification of Class 10 Board Exams Marks

Modalities and Schedule for Secondary School (Class X) Examinations, 2020 in the subjects whose examinations have been conducted by CBSE for the processes of (I) Verification of Marks (II) Obtaining Photocopy of the Evaluated Answer Book(s) (Ill) Re-evaluation of Marks...

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 Reduced Syllabus Clarification

CBSE board has issued the following clarification relating to various news reports regarding reduction in syllabus and questions from the reduced syllabus during board exams. Please read below: It has come to notice of the Board through a section of media reports that...

×
Studies Today