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.

I found out that you can always use methods

To what are you referring, can you give an example?

Classes provide structure, an abstract separation of code pieces.

Here, this should clarify a bit the need of classes in a high level programming language:
Click Here

You 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!)

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.