I want to make a program thats like an RPG. I have a ninja class file that has methods such as attack, explore, rest, etc... Then I have the tester class file and all the methods work as i wanted them to. But now, i want to create another class, such as an Enemy class. How do i have the two classes (ninja and enemy) interact? Any help is appreciated. Thank you!
Tags: