I'm working on simplifying code where I have two classes (Lab and Pitbull). They have the same method names but call different helper methods. The helper methods must stay.
class lab{
void sprint(boolean start){
Labhelper.doSomething()
}
}
class pitbull{
void sprint(boolean start){
Pitbullhelper.doSomething()
}
}
My goal is to create an interface (i.e dog) where I can create a list of lab and dog but also be able to call void sprint() from that list. How might I be able to do that?
doginterface.