0

I want to know why make classes? if you can simply make methods in the main class?

4th Sep 2015, 11:20 AM
miguel coy
miguel coy - avatar
2 Answers
+ 1
in order to organize more effectively Your program. With classes, objects and methods you can split Your code into separate actions which are invoqued whenever you want.
12th Nov 2015, 1:07 AM
Luciano AdriĂĄn GonzĂĄlez
0
It is bcoz of OOP features. if you don't want OOP functionalities then don't create any classes and implement everything in main class. Going ahead you might feel to use OOP as and when complexity of program increases.
23rd Jun 2016, 6:52 PM
Jigar Thacker
Jigar Thacker - avatar