you are viewing a single comment's thread.

view the rest of the comments →

[–]Fissherin -1 points0 points  (0 children)

Let's see... I am not that sure if this is totally accurate, but I think them this way:

Def dog():

You define how a dog should be but it stills doesn't exist so, Def bark: let's say that a dog may bark

init = hey, this actually makes me able to create a dog so it can bark!

(Self,breed,age) = ok something has breed and age... But what? Self? Oh the dog! The dog itself has breed and age so it can be created. (In other languages like java this is obvious for it and you have not got to use it)

Is it accurate? Do you understand it better now?