What if we make the method as abstract in another interface?



What if we make the method as abstract in another interface?..

Answer / Sulekha Kumari

If a method is declared as abstract in another interface that an implementing class already implements (either from the original interface or the base class), it results in a compile-time error. This is because a class cannot implement two conflicting abstract methods with the same name and signature.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More OOAD Interview Questions

What is the purpose of late binding in object-oriented programming?

1 Answers  


explain the difference between operator overloading and function overloading.

1 Answers   TCS,


Explain the abstract class modifier?

1 Answers  


What is @functionalinterface?

1 Answers  


What is operator overloading and polymorphism?

1 Answers   ITC Indian Tobacco Company,


What are all the languages which support oop?

1 Answers  


What is the use of interface?

1 Answers  


What are different types of arguments?

1 Answers  


What if we make the method as abstract in another interface?

1 Answers  


What do you meant by "SBI" of an object?

2 Answers   TCS,


Where shall I go for Package Diagram?

1 Answers   Protech,


Why is java not fully objective oriented?

1 Answers  


Categories