As you can see, he wants us to make seven classes which consist of the main idea (Attacks) then split attacks into two classes (Ranged and Melee) then split each of them into two more classes (Ranged: Arrow Release and Flamethrower, Melee: Punch and Kick) which total seven classes in all. Can someone please help me make these seven classes into one single .cpp file? Cause I tried searching youtube videos and cplusplus tutorial yet I still can't grasp it for some reason...
If I understand you correctly, you are only asking how to set up the inheritance for the seven classes. You are not asking how to draw the diagram in your post, or have the classes do anything, for that matter. If I misunderstood you, please clarify.
The tutorials on this site are very good. The section on inheritance can be found at http://www.cplusplus.com/doc/tutorial/inheritance/#inheritance. Read this and then try writing the classes you need and show us the code you come up with. The sample code in the tutorial should get you going in the right direction.
According to what you've given us, there are no properties specified, so for this problem you may end up with a bunch of classes with no data members or member functions.