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

What starts with the letter "X" in Ancient Rome
209 divided 3. Please help! Sister got 6,911 I got 69.6 repeating. What is the answer. Thanks for the help.
write an adventure about a magical leprechaun ? I don't know what to write ?
Which organelle appears as a stack of membranes? a. mitochondrian b. vesicle c. cell membrane d. Golgi apparatus
Which of the following are likely to form a covalent bond? aluminum and oxygen sulfur and oxygen magnesium and chlorine copper and copper
is tjis true or false there is no multiple of 1/6 between 3/6 and 4/6.
Which nations were part of the Triple Alliance? Austria-Hungary Britain France Germany the United States Russia
Erick Hawkins was the first student to enroll in the School of American Ballet. True false
Highly intellectual poets who explored the nature of existence using unusual similes and metaphors are known as the a. cavalier poets. b. epic poets. c. meta
write the mixed number that is equivalent to 16/3