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

write 3 word division problems with a divisor of 6​
a+b+c=31 2a+3b+4c=105 who's a,b,c
Perform the indicated operation.(3x - 4)2
Which ordered pair is a solution of the equation? − 3 x + 4 y = 1 4 −3x+4y=14 Choose 1 answer:
9.193E41 in scientific notation
which of the following is a regular polygon?a: rectangleB:circlec:equalterial triangleD: trapezoid​
For a sewing project, Maria divides 5 yards of fabric into 1/2 yard strips. How many strips will Maria have for her project? (Fractions not decimals)
Karl Marx wrote the Communist Manifesto. What ideas were in this book?
Teacher asked the fifth class students to choose the best name games, 1/8 of students chosen the football game, the number of students that chosen the football
What is Pascal principle