What you said makes sense. Thanks a lot for the help, copeg.
Type: Posts; User: jrahhali
What you said makes sense. Thanks a lot for the help, copeg.
@copeg. So you think that the best solution would be to instantiate an object of Baby within Adult to get code re-use? I think your reasoning that there is a child inside us all is creative. IMO,...
Say you had these two classes:
public class Adult {
public void crawl() {...}
public void walk() {...}
public void run() {...}
}
public class Baby {