Why we need class logic in C Sharp ?
The word 'class' itself mean to
'category'/
'Partition'
imagine library without cupboards
will it be easy to manage? NO
same way a project(name-space) have concept of class to manage 'codes' easy way.
the main thing is you can manage classes(code-blocks) in namespace as per requirement
like in library you can arrange cupboards in many different ways.
eg.
library
IT-dept
EC-Dept
GK-Dept
library
syllabus books
IT-dept
EC-Dept
GK-Dept
Reference books
IT-dept
EC-Dept
GK-Dept
What opportunities do we gain with classes ?
one main opportunity is it has ability to work as 'Template',
means you can create instance/object of class.
suppose you have a 'bill book' has a fixed format the content will be change on pages as the customer will changed. so, 'bill-book' is class and different pages are the objects
second is the concept of re-usability (called Inheritance)
some other concepts related to class are
accessibility
encapsulation
overriding
overloading
inheritance (interfaces & class)
abstract class
etc.
Deep study of these related concepts will help you to utilize 'class'/'Code-blocks' very well.
and if classes managed in good way, project/application/namespace will reflect desired results.
Happy Coding!
:)