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 is a TRUE statement about skew lines? A. Skew lines are perpendicular. B. Skew lines intersect at a single point. C. Skew lines do not lie in the same pla
what is the denotation of the word home
Earthquakes happen when rocks bend and snap back in a process called
Which lines in this excerpt from Anita Desai’s "Games at Twilight" clearly show an omniscient narrator?
The ring of fire is a ring of volcanoes and earthquakes that occur along what.
10. My name, Cynthia, is from a Greek word for moon. A. Simple sentence B. Compound sentence C. Complex sentence 11. I was not surprised when I learned that. A
It is one of the main reasons Hoover lost the election of 1932. A.) Americans felt Hoover’s reforms had not done enough to help them directly. B.) Voters were a
Where did the battle of gettysburg take place?
vshsusisisisusjsjsuausus
Based on this excerpt from "Porphyria's Lover” by Robert Browning, what does the setting contribute to this poem? The rain set early in to-night, The sullen wi