I'm very new to this and I try to google it, but I can't seem to really figure out how this really works so I am here asking this question :(...
It's actually quite simple, I just need a syntax of this:
Class Player <- An abstract super class representing a player object
Classes Human and Computer <- Classes extending the super class Player
Dat's it! It should be a simple one, you guys can either give me a direct translation of the description into Ruby syntax or some other examples to help me.
One more question just in case, for a abstract super class, is defining a instance method the same as a normal class? Because normal class usually goes like:
def Method1(parameters)
blah blah blah;
end
Thx in advance!