+ 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..

27th Dec 2018, 6:32 PM
Sonu Kumar
Sonu Kumar - avatar
11 Antworten
+ 4
Is it posible to code all classes in only single class???
28th Dec 2018, 3:24 AM
Sonu Kumar
Sonu Kumar - avatar
+ 4
How to use inner class . Actually i don't know about inner class
28th Dec 2018, 6:39 AM
Sonu Kumar
Sonu Kumar - avatar
+ 4
Can you suggest a name of book
28th Dec 2018, 6:48 AM
Sonu Kumar
Sonu Kumar - avatar
+ 4
Ok
28th Dec 2018, 7:07 AM
Sonu Kumar
Sonu Kumar - avatar
+ 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.
28th Dec 2018, 8:02 AM
Abhishek Tandon
Abhishek Tandon - avatar
+ 3
Can you suggest a name of book
28th Dec 2018, 6:46 AM
Sonu Kumar
Sonu Kumar - avatar
+ 3
You can insert any number of classes in code playground. Eg: class C1 {} class C2 {} class C3 {} class C4 extends C1 {}
28th Dec 2018, 1:40 PM
Seniru
Seniru - avatar
+ 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.
27th Dec 2018, 7:44 PM
Abhishek Tandon
Abhishek Tandon - avatar
0
I don't know the requirements of your software, but why can't you use inner classes?
28th Dec 2018, 6:38 AM
Umar Sunusi Maitalata
Umar Sunusi Maitalata - avatar
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.
28th Dec 2018, 6:44 AM
Umar Sunusi Maitalata
Umar Sunusi Maitalata - avatar
0
Introduction to Java Programming comprehensive version 10th edition by Y. Daniel Liang
28th Dec 2018, 7:01 AM
Umar Sunusi Maitalata
Umar Sunusi Maitalata - avatar