11th Standard Syllabus & Materials
11th Standard
TN 11th Tamil இயற்கை வேளாண்மை,சுற்றுச்சூழல் -செய்யுள் - மனோன்மணீயம் Important Questions And Answers Study Material - QB365 Set A
NEW11th Standard
TN 11th Tamil என்னுயிர் என்பேன் -துணைப்பாடம் - இசைத்தமிழர் இருவர் Important Questions And Answers Study Material - QB365 Set A
NEW11th Standard
TN 11th Tamil மொழி கலை -செய்யுள் - ஒவ்வொரு புல்லையும் Important Questions And Answers Study Material - QB365 Set A
NEW11th Standard
TN 11th Tamil பீடு பெற நில் - இலக்கணம் - பகுபத உறுப்புகள் Important Questions And Answers Study Material - QB365 Set A
NEW11th Standard
TN 11th Tamil பீடு பெற நில் - துணைப்பாடம் - வாடிவாசல் Important Questions And Answers Study Material - QB365 Set A
NEW11th Standard
TN 11th Tamil பீடு பெற நில் - செய்யுள் - குறுந்தொகை Important Questions And Answers Study Material - QB365 Set A

Published on: 09/09/2019
Inheritance
Download Tamil Nadu 11th Standard Computer Science question papers, model tests, one-mark questions, important questions, and public exam papers in PDF format. Free study materials and answer keys for TN State Board students.
Questions + Answers key
Take MCQ Computer Science Test

1.
What is the difference between public and private visibility mode?
2.
What is a base class?
3.
What is inheritance?
4.
Write some facts about the execution of constructors and destructors in inheritance.
5.
What do you mean by overriding?
6.
What is the difference between polymorphism and inheritance though are used for reusability of code?
7.
#include< iostream >
#include< string >
#include
using name spacestd;
class publisher
{
char pname[15];
char hoffice[15];
char address[25];
double turnover;
protected:
char phone[3][10];
void register( );
public:
publisher( );
~publisher( );
void enter data( );
void disp data( );
};
class branch
{
charbcity[15];
char baddress[25];
protected:
intno_of_emp;
public:
charbphone[2][10];
branch( );
~branch( );
void have data( );
void give data( );
};
class author: public branch, publisher
{
intaut_code;
charaname[20];
float income;
public:
author( );
~author( );
voidgetdata( );
voidputdata( );
};
(i) Which type of Inheritance is shown in the program?
8.
Explain the different types of inheritance.
9.
class x
{int a;
public:
x()
{}
};
class y
{x x1;
public:
y(){}
};
class z : public y,x
{
int b;
public:
z(){}
}z1;
What is the order of constructor for object zl to be invoked?
z,y,x,x
x,y,z,x
y,x,x,z
z,y,z
10.
Which of the following is true with respect to inheritance?
Private members of base class are inherited to the derived class with private.
Private members of base class are not inherited to the derived class with private accessibility
public members of base class are inherited but not visible to the derived class.
Protected members of base class are inherited but not visible to the outside class.
11.
A class is derived from a class which is a derived class itself, then this is referred to as
multiple inheritance
multilevel inheritance
single inheritance
double inheritance
12.
13.
Which of the following derives a class student from the base class school
school: student
class student: public school
student: public school
class school: public student
1.
| Private visibility mode | Public visibility mode |
| When a base class is inherited with private visibility mode the public and protected members of the base class become 'private' members of the derived class. | When a base class is inherited with public visibility mode, the protected members of the base class will be inherited as protected members of the derived class and the public members of the base class will be inherited as public members of the derived class. |
2.
A class that is used as the basis for inheritance is called a superclass or base class.
3.
Inheritance is one of the most important features of Object Oriented Programming. In object- oriented programming, inheritance enables new class and its objects to take on the properties of the existing classes.
4.
Some Facts About the execution of constructor in inheritance
i. Base class constructors are executed first, before the derived class constructors execution
ii. Derived class cannot inherit the base class constructor but it can call the base class constructor by using Base_class name::base_class_constructor() in derived class definition
iii. If there are multiple base classes, then its start executing from the left most base class
iv. In multilevel inheritance, the constructors will be executed in the order of inheritance The destructors are executed in the reverse order of inheritance.
5.
When a derived class member function has the same name as that of its base class member function, the derived class member function shadows/hides the base class's inherited function. This situation is called function overriding.
6.
| Polymorphism | Inheritance |
| Reusability of code is implemented through functions (or) methods. | Reusability of code is implemented through classes. |
| Polymorphism is the ability of a function to respond differently to different message. | Inheritance is the process of creating derived classes from the base class or classes. |
| Polymorphism is achieved through overloading. | Inheritance is achieved by various types of inheritances namely single, multiple, multilevel, hybrid and hierarchical inheritances. |
7.
Multiple Inheritance
8.

Types of Inheritance
There are different types of inheritance viz., Single inheritance, Multiple inheritance, Multilevel inheritance, hybrid inheritance and hierarchical inheritance.
1. Single Inheritance: When a derived class inherits only from one base class, it is known as single inheritance.
2. Multiple Inheritance: When a derived class inherits from multiple base classes it is known as multiple inheritance.
3. Hierarchical inheritance: When more than one derived classes are created from a single base class, it is known as Hierarchical inheritance.
4. Multilevel Inheritance: The transitive nature of inheritance is itself reflected by this form of inheritance. When a class is derived from a class which is a derived class - then it is referred to as multilevel inheritance.
5. Hybrid inheritance: When there is a combination of more than one type of inheritance, it is known as hybrid inheritance. Hence, it may be a combination of Multilevel and Multiple inheritance or Hierarchical and Multilevel inheritance or Hierarchical, Multilevel and Multiple inheritance.
9.
(d)
z,y,z
10.
(b)
Private members of base class are not inherited to the derived class with private accessibility
11.
(b)
multilevel inheritance
12.
(a)
13.
(d)
class school: public student
11th Standard Syllabus & Materials
11th Standard
TN 11th Tamil பீடு பெற நில் - செய்யுள் - காவடிச்சிந்து Important Questions And Answers Study Material - QB365 Set A
NEW11th Standard
TN 11th Tamil பீடு பெற நில் - உரைநடை - மலை இடப்பெயர்கள் : ஓர் ஆய்வு Important Questions And Answers Study Material - QB365 Set A
NEW11th Standard
TN 11th Tamil மாமழை போற்றுதும் - துணைப்பாடம் - யானை டாக்டர் Important Questions And Answers Study Material - QB365 Set A
NEW11th Standard
TN 11th Tamil மாமழை போற்றுதும் - செய்யுள் - ஐங்குறுநூறு Important Questions And Answers Study Material - QB365 Set A
Tamilnadu Stateboard 11th Standard Subjects

Maths

Commerce

Economics

Biology

Business Maths and Statistics

Accountancy

Computer Science

Physics

Chemistry

Maths

Biology

Economics

Physics

Chemistry

History

Business Maths and Statistics

Computer Science

Accountancy

Computer Applications

History

Computer Technology

Commerce

Computer Applications

Computer Technology

Tamil

English

French
Tamilnadu Stateboard Standards