0

C# is my first programming that im learning it right now i was doing good until igot to CLASSES AND OBJECTS ifeel like im losing control ... give me a best ADVICE.

21st Sep 2016, 10:56 PM
Barwar
Barwar - avatar
3 Respuestas
+ 6
The only way to get better at something is to keep doing it. As far as classes and objects go, think of classes as a template and objects as instances of that template. For instance, there are lots of different cars in the world. But all cars have similar attributes that people want, like 4 wheels. So rather than having to explicitly say that every type of car has 4 wheels, you can make car a class that specifies 4 wheels and then make objects from that class. Then when you say, "I want to make a honda" you don't have to say, "I want to make a honda with 4 wheels" because it is included for every object in the class. Basically making a class helps by creating a template so you don't have to explicitly state every attribute for similar future objects
22nd Sep 2016, 1:27 AM
Ryne
Ryne - avatar
+ 2
Ryne you realy made it easier ..ive seen from other forums that someone describe it like cars or other things but some how i get it now from you completly ... thanks man that is sure the best advise.
22nd Sep 2016, 1:39 AM
Barwar
Barwar - avatar
- 1
It's simple, just keep trying to figure it out
23rd Sep 2016, 11:23 PM
Accomplice
Accomplice - avatar