0

Hey all can anyone pls tell me where and when do I need classes exactly?

23rd Jul 2016, 10:06 PM
moli42
moli42 - avatar
2 Answers
+ 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👍
24th Jul 2016, 7:24 AM
Darsh Shah
Darsh Shah - avatar
+ 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.
26th Jul 2016, 3:20 AM
Stefan
Stefan - avatar