What is Inheritance, Multiple Inheritance, Shared and
Repeatable Inheritance?

Answer Posted / vidhya alphonse

Inheritence is defined as the mechanism of deriving a new
class from an already existing class.The class from which
new class derived is called parent or bae class and the
derived one is called derived class.The new derived class
will have the characteristics of its own and the base class.
The main purpose of using inhertence concept is that
nothing but the reusability of code.Muliple inheritence
means deriving a new class from one or more base class.

Is This Answer Correct ?    7 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is abstraction in oops?

561


What is this pointer in oop?

536


This program numbers the lines found in a text file. Write a program that reads text from a file and outputs each line preceded by a line number. Print the line number right-adjusted in a field of 3 spaces. Follow the line number with a colon, then one space, then the text of the line. You should get a character at a time and write code to ignore leading blanks on each line. You may assume that the lines are short enough to fit within a line on the screen. Otherwise, allow default printer or screen output behavior if the line is too long (i.e., wrap or truncate). A somewhat harder version determines the number of spaces needed in the field for the line numbers by counting lines before processing the lines of the file. This version of the program should insert a new line after the last complete word that will fit within a 72-character line.

1609


program for insertion ,deletion,sorting in double link list

2261


What are the 3 principles of oop?

587






What is class in oop with example?

593


What is the full form of oops?

589


Can destructor be overloaded?

568


What is oops concept with example?

563


Can a varargs method be overloaded?

593


What is polymorphism give a real life example?

542


Can we create object of interface?

576


Get me a number puzzle game-program

1674


Can we define a class within the interface?

537


Do you know about multiple inheritance?

618