0
Hey all can anyone pls tell me where and when do I need classes exactly?
2 Respostas
+ 1
class is the place where u can club your program I.e. u can declare functions and variables in class so that u can make your program easy to run..
class can be make anywhere in program....
all the best👍
+ 1
Classes are a way to express your thought model for the problem solution you formulate via program. That doesn't mean you have to use classes (e.g. other programming languages do not have the concept of object orientation (and therefore classes) and you can solve the same problems with them).
Classes, or in general object orientation, were introduced in programming languages *to make it easier* for programmers to formulate programs in the terms they think.