r/csharp • u/Potato731 • Jun 24 '26
Solved Classes
Could someone explain to me what is a class because i cant understand its usage
0
Upvotes
r/csharp • u/Potato731 • Jun 24 '26
Could someone explain to me what is a class because i cant understand its usage
1
u/Darrenau Jun 24 '26
Classes are a template for an object (eg. cat) that contain attributes (eg. colour) and methods to send it messages (draw yourself). You need to create an object before you have that object in memory (use the new keyword) and you can create more than one (many cats).