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
What is abstraction in oops?
What is this pointer in oop?
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.
program for insertion ,deletion,sorting in double link list
What are the 3 principles of oop?
What is class in oop with example?
What is the full form of oops?
Can destructor be overloaded?
What is oops concept with example?
Can a varargs method be overloaded?
What is polymorphism give a real life example?
Can we create object of interface?
Get me a number puzzle game-program
Can we define a class within the interface?
Do you know about multiple inheritance?