officiallyDylan1338 officiallyDylan1338
  • 19-07-2019
  • Computers and Technology
contestada

Which technique/concept can be use toimplement multiple inheritances
in java?

Respuesta :

tardymanchester tardymanchester
  • 24-07-2019

Answer:

Interface

Explanation:

Java does not supports multiple inheritance by class, but we can implement multiple inharitacnce in  java using interface, with interface we uses implements keyword.

Example-

Declare interface like below code -

interface parent{

}

and use in child class like below code -

class Child1 implements interface{

}

class Child2 implements interface{

}

Answer Link

Otras preguntas

Describe a similarity between the relative location and the situation of a large sports stadium.
What two things are being compared. There I waited,crouched behind my pointed walls of words
does classifying people according to their abilities a good thing or does it promote discrimination in the workplace? What are your thoughts about this?​
what is the answer to 6(x+4)=30
is keaton bear really dumb?
Need a little help with chemistry:) *if you don’t know, don’t put anything*
Millie might not be able to attend the play tonight because she still has to find someone to watch her two year old daughter for the night. Which version of the
The physical components of a computer are called hardware
4. Bill travels 400 m east in 20 seconds and then travels 300 m north in 20 seconds. a) What is the total distance traveled? b) What is the total displacement?
Describe how [2^3][2^-4] can be simplified