Code Playground | Sololearn: Learn to code for FREE!
Новый курс! Каждый программист должен знать генеративный ИИ!
Попробуйте бесплатный урок
+ 4

Code Playground

Is it possible to create more than one class in the coding window?

8th Feb 2018, 1:45 AM
Tim Millar
Tim Millar - avatar
2 ответов
+ 3
yes its possible. But the code will start from the main() method. So, if you are using more classes, then you have to call or refer to them from the main method.
8th Feb 2018, 1:52 AM
cHiRaG GhOsH
cHiRaG GhOsH - avatar
+ 2
yeah so encapsulation isn't possible
8th Feb 2018, 1:55 AM
Tim Millar
Tim Millar - avatar