0
What are the practical applications of classes in c#?
What can we do with classes and objects in real world programming?
3 odpowiedzi
+ 4
Classes and objects have more practical application than any other concept. Almost every GUI(Graphical User Interface) application that exists in the world uses object oriented programming. Even AAA games use classes and objects in them.
+ 1
For example, the graphical user interface (GUI) of applications on PC consists of multiple components like buttons, edit texts, drop-down lists, images, radio buttons, etc. These are instances of classes (objects). You define the class once, then you can use the same base code multiple times. For example, you define one class "Button", and then you may create objects of it and place as many buttons as you need on your form (window). All buttons are sharing the same base concept, but each of them has its own attributes like size, position in the window, color or style, an "OnClick" method, etc.
0
Vasile Eftodii thanks