interface Animal
{
void live();
void reproduce();
}
class Dog implements Animal
{
void live()
{
//definition
}
}
But seeing as promising to define the method when including an interface, when the method is mentioned anyway, is sort of redundant. If you didn't use the interface, there would be no difference in the class or its methods.
Could someone please help me understand this?
Thank you!!!

New Topic/Question
Reply



MultiQuote









|