Zealous___Ideal t1_ixdafut wrote on November 22, 2022 at 4:09 PM Reply to ELI5: What is the difference between classes, constructors, structs and methods in C# by Sure-Ad-5053 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. Permalink 5
Zealous___Ideal t1_ixdafut wrote
Reply to ELI5: What is the difference between classes, constructors, structs and methods in C# by Sure-Ad-5053
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.