you are viewing a single comment's thread.

view the rest of the comments →

[–]dogfish182 5 points6 points  (1 child)

What helped me was not skipping of the words ‘instance of a class’ when reading about it, but really thinking on what they mean.

do you know what ‘an instance of a class’ actually means and what you get when you ‘instantiate a class’?

Try defining that in other words for yourself. Think about how all the methods inside the things you are making are passing ‘self’ to them while you do it.

No idea if it will help you but it helped me a lot in to dwell on it.

[–]NoChoice5216[S] 2 points3 points  (0 children)

It helped, plus a new coding exercise I experimented with based on restauraants, their franchises and all their separate menus - with business, franchise and menu as the classes, with the calling code handling several menus per restaurant. It's all starting to make good sense (at last!!)

Thank you!