I had a doubt. Why in java all the lines even the main function need to be inside the class? Can anyone help me | Sololearn: Learn to code for FREE!
Новый курс! Каждый программист должен знать генеративный ИИ!
Попробуйте бесплатный урок
0

I had a doubt. Why in java all the lines even the main function need to be inside the class? Can anyone help me

16th Dec 2017, 2:21 AM
lokesh krishna
1 ответ
+ 1
ok,but c++ is also a object oriented programming language but there we don't write main function inside the class why
16th Dec 2017, 2:57 PM
lokesh krishna