Zealous___Ideal t1_ixdafut wrote
Programming is tricky to explain to a 5 year old.
A class is like “all your toy trucks”
A constructor is “how does fisher-price make your trucks?”
Structs are a list of all the things on your truck: Its lights, its wheels, etc.
Methods are all the cool things your truck can do: Honk, back up, scare the dog.
Viewing a single comment thread. View all comments