19. More kinds of methods


#1

I do not fully understand methods, and am having trouble, can someone show and/or explain what to do, and how methods work? Thanks in advance!


#2

mehtod are simply function that work for the object that are relate the the classe where you've define the class
you define a class vehicule wich is define by the method mooving()
in this class you can have an underclass bike car or whater is a vehicule and each of those are children of the vehicule class wich inherit the method mooving.
Sorry for my engish ^^ hope you understand enought
Methode = function of an object


#3

thanks! that helps my understanding of methods a good deal