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

Which one of the following would be considered a fixed cost of operating a motor vehicle?
write four and seven hundred thousandths in standard form
convert the following equation from polar to rectangular form: theta=2pi/3
In an effective compare and contrast paragraph, the purpose of the topic sentence is to
14, 23, 31, 29, 33 what is the standard deviation for this set of population data?
how do yo spell 607.409 in word form
Three of the choices are unit rates for the price of milk. Which choice is NOT? $1.00 per 8 ounces $1.30 per pint $3.47 per gallon $2.80 per quart
what was the purpose of the egyptian bureaucracy
7. The timeline below covers the entire interval of Earth's history, from the formation of the Earth and solar system nearly 4.6 billion years ago to the prese
Which coordinate plane shows the graph of f(x)=-2+3