Update it so it wont do that
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{
}
Related Articles. Scanner is a class in java. util package used for obtaining the input of the primitive types like int, double, etc. and strings.
Answer:
i like ghost and modern 3
Explanation: