+ 5
how to add multiple java class on sololearn 's code codeplayground
I want to add 4 other java class on my code. But there is no any options. How can i do it..
11 Antworten
+ 4
Is it posible to code all classes in only single class???
+ 4
How to use inner class . Actually i don't know about inner class
+ 4
Can you suggest a name of book
+ 4
Ok
+ 4
Yes, its possible to write all four classes in the same code.
Those four classes might be inheriting each other or they may exist independently.
+ 3
Can you suggest a name of book
+ 3
You can insert any number of classes in code playground.
Eg:
class C1 {}
class C2 {}
class C3 {}
class C4 extends C1 {}
+ 2
If you wish to link 4 classes with each other using 4 different Java codes here at code playground, then its not possible. Each code is independent of every other. You need to have all of them in the same code.
0
I don't know the requirements of your software, but why can't you use inner classes?
0
It's a Java feature where one class can have multiple inner classes. You can even make the classes anonymous. Find a very nice modern java programming book you will learn it. I haven't take Sololearn Java course, so I wouldn't know if there is inner classes lesson.
0
Introduction to Java Programming comprehensive version 10th edition by Y. Daniel Liang