+ 1
I don't understand objects and classes in c#
So i got into objects and classes in the c# tutorial but i don't see the useage of classes and objects. Like what do you use them for. How? And why is it good for you. Could you clarify it for me?
2 Respuestas
0
Classes are like blueprints to make objects. Both are essential parts of object oriented programming that is the type of programming that is closest to real life.
For example, you have the Person class and Billy is an instance of Person and in real life Billy is a person. In the Person class there are methods that let Billy talk and walk like in real life. Billy has properties that differ him from, for example, Mary that is another instance of Person, like higher speed and lower age... like in real life.
With classes you can make code more realistic.