A class inherits from 2 interfaces and both the interfaces have the same method name as shown below. How should the class implement the drive method for both car and bus interface?
No Answer is Posted For this Question
Be the First to Post Answer
What's the benefit of using inheritance?
What is the difference between class inheritance and interface inheritance?
What are a base class, subclass, and superclass?
Explain the use of Vtable and what are the various problems to override the functions?
Write a program to show the inheritance used in a class.
What are associative classes?
3 Answers InfoAxon Technologies, Protech,
Why does java not support multiple inheritance?
Is is possible to define our own functional interface?
What is the difference between aggregation and composition?
What is the use of finalize method?
How to make a class accessible as a web service?
What is data encapsulation and what is its significance?