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 difference between inheritance and polymorphism?
How oops is better than procedural?
Why is oop useful?
Can we override main method?
is there any choice in opting subjects like 4 out of 7
Can we have inheritance without polymorphism?
What is object in oop?
What is oops with example?
What is destructor in oop?
Write a program to sort the number with different sorts in one program ??
What is difference between data abstraction and encapsulation?
What are the components of marker interface?
Write a program to compute for numeric grades for a course. The course records are in a file that will serve as the input file. The input file is in exactly the following format: Each line contains a student's first name, then one space, then ten quiz scores all on one line. The quiz scores are in whole number and are separated by one space. Your program will take it input from this file and sends it output to a second file. The data in the output file will be exactly the same as the data in the input file except that there will be one additional number (of type double) at the end of each line. This number will be the average of the student's ten quiz scores. Use at least one function that has file streams as all or some of its arguments.
How long to learn object oriented programming?
What does sksksk mean in text slang?