hY THERE,
i ve been working with c# for a while now but i just can t understand Why would i use classes when i can created methods. I found out that you can always use methods instead and that s bothering me a lot because i see people using classes all the time.
SO MY QUESTION IS:
Are classes here just to make our code prettier?
and because we want to make a nice looking hierarchy?
tnx.
terrier_unknown
7
Newbie Poster
Recommended Answers
Jump to PostYou are still thinking in functions, procedures, subroutines. Try to get a grasp of object oriented programming and you will see the benefit of classes. But I must admit it is a bit hard to see this. (surely was hard for me!)
All 3 Replies
pritaeas
2,194
¯\_(ツ)_/¯
Moderator
Featured Poster
Lucaci Andrew
140
Za s|n
ddanbe
2,724
Professional Procrastinator
Featured Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.