What is the Advantage of Interface over the Inheritance in
OOPS?

Answers were Sorted based on User's Feedback



What is the Advantage of Interface over the Inheritance in OOPS?..

Answer / mms zubeir

1. Provides flexibility in implementing the operations for
the derived classes.

2. Avoid conflicts when more than one interfaces are
derived in a class.

I will club some more later...

Is This Answer Correct ?    28 Yes 9 No

What is the Advantage of Interface over the Inheritance in OOPS?..

Answer / iyappan_protech

1)Interface totally keeps away that implementation
knowledge from client.
2)It supports us to change their behaviour dynamically.It
means that, it will act depends on dynamic specilization(or
substitution).
3)This gives very good abstraction about the object to
client.
4)It avoids client broken, even developer made some changes
on implimentation or add new specilization(new
implementation).
5)So it gives open way to extend and implementation.

Is This Answer Correct ?    16 Yes 11 No

What is the Advantage of Interface over the Inheritance in OOPS?..

Answer / poorna chandar rao

in inheritence is not support the multiple inhertence but
interface is supported multiple inhertence because imterface
is advatage over the inhertience

Is This Answer Correct ?    8 Yes 10 No

What is the Advantage of Interface over the Inheritance in OOPS?..

Answer / rajendra patidar

On OOPS due to multiple inheritance duplicate value may be
received by derived class, so compiler do not understand
what syntax should compile.
Interface Refuse such type of problem in java.

Is This Answer Correct ?    0 Yes 4 No

Post New Answer

More OOPS Interview Questions

features of OOPS

22 Answers   Ness Technologies, Satyam,


Which is the parameter that is added to every non-static member function when it is called?

3 Answers   Accenture,


What is the difference between class and structure?

7 Answers  


What is oops in simple words?

0 Answers  


Question: Implement a base class Appointment and derived classes Onetime, Daily, Weekly, and Monthly. An appointment has a description (for example, “see the dentist”) and a date and time. Write a virtual function occurs_on(int year, int month, int day) that checks whether the appointment occurs on that date. For example, for a monthly appointment, you must check whether the day of the month matches. Then fill a vector of Appointment* with a mixture of appointments. Have the user enter a date and print out all appointments that happen on that date.

0 Answers  






pointers are support in C#? if yes then how to use it?

8 Answers   Softvision Solution,


I am developing a payroll system mini project.I used file concept in program for reading and writing.When the program is reloading into the memory that is if i execute next time the file was cleaned and adding data from the starting this is my problem.I want to strore the previous data and if i want to add any record that should be next of previous data.Please help me.

0 Answers  


what is single inheritance?

18 Answers   IBM,


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.

0 Answers  


What is the use of fflush(stdin) in c++?

4 Answers   HCL,


What is abstraction in oop with example?

0 Answers  


Will I be able to get a picture in D drive to the c++ program? If so, help me out?

0 Answers  


Categories