One of my first programs

Heya!
Hope i post this in the right forum. :)
Have created one of my first programs and i wonder if i am going in the right direction with classes and functions? :P
Have posted the files with code on Github:
https://github.com/phunlife/Pancake-program

Hope someone have the time :)
Thank you!

//Phun
To be brutally honest, I would say no. An object should be a grouping of attributes that describe a single thing. For instance, a car on a freeway would have a size, color, speed, direction etc. It interacts with the freeway, but you would not put both the attributes for the car and the attributes for the freeway in the same class. Further more, a class would represent a single individual instance of a car.

I think you just have a poor example to work with, I can't see where you would need to group attributes for either one of your variables in this example.
Topic archived. No new replies allowed.