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

Answer Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the difference between procedural programming and oops?

557


What is abstraction in oop with example?

646


Write a program to implement OOPS concepts such as inheritance, polymorphism, friend function, operator overloading?

4242


Why is polymorphism important in oop?

633


Write a java applet that computes and displays the squares of values between 25 and 1 inclusive and displays them in a TextArea box

2036






Is html an oop?

582


Why do while loop is used?

577


What are different types of JVM's? for example we use dalvik jvm for android then what about the remaining operating systems?

1652


How do you explain polymorphism?

592


What is oops and why we use oops?

573


write a code for this. serial_number contained in the header of the file will be read , if this serial number is less than a previous serial number within a successfully processed file, or is the same as another serial number within a successfully processed file, or if the field contains anything other than 7 digits, then the file must error with the reason ‘Invalid SERIAL_NUMBER’.

1780


What are the features of oop?

641


What is the purpose of enum?

581


What is polymorphism used for?

572


What is the point of oop?

656