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?
968What is the default access modifier for a class,struct and an interface declared directly with a namespace?
971
Difference between composition and inheritance ?
Can you give some examples of tokens?
How many instances can be created for an abstract class?
Can different parts of a partial class inherit from different interfaces?
Is @functionalinterface annotation mandatory to define a functional interface? What is the use of @functionalinterface annotation? Why do we need functional interfaces in java?
What is the significance of encapsulation?
What are virtual functions, base class pointer, derived class pointer, biding references?
What is meant by overloading functions and operators?
What is an interface?
Describe inheritance and non-inheritance of a derived class?
What do you mean by polymorphism?
What are the rules to define a functional interface?
Can you call the base class method without creating an instance?
Name some languages which have object oriented language and characteristics?
Which oops concept is used as reuse mechanism?