How will I run Object Oriented Programs on SoloLearn? When I am running a proper Object oriented Program on other where JVM | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

How will I run Object Oriented Programs on SoloLearn? When I am running a proper Object oriented Program on other where JVM

Please help me out as soon as possible

19th May 2020, 5:14 PM
Student 31
Student 31 - avatar
9 Answers
+ 2
Student 31 where is the main method?
19th May 2020, 5:49 PM
Avinesh
Avinesh - avatar
+ 1
Just like you run it on any other IDE. What do you mean when you say a proper object oriented program?
19th May 2020, 5:28 PM
Avinesh
Avinesh - avatar
+ 1
It could be done in multiple ways and I'm not sure about the one you want it to look like. Revise the course again because it is mentioned there clearly.
19th May 2020, 6:01 PM
Avinesh
Avinesh - avatar
0
I am unable to run object oriented programs on Sololearn
19th May 2020, 5:42 PM
Student 31
Student 31 - avatar
0
import java.util.*; class Arezzonock { int l,b,h,v; void input(){ Scanner sc = new Scanner(System.in); l=sc.nextInt(); b=sc.nextInt(); h=sc.nextInt(); } void calculateVol(){ v=l*b*h; } void display(){ System.out.println("Volume is"+v); } }
19th May 2020, 5:45 PM
Student 31
Student 31 - avatar
0
How will I fix it?
19th May 2020, 5:52 PM
Student 31
Student 31 - avatar
0
In the question it is given to use the methods, void input() , void calculateVol() , void display()
19th May 2020, 5:55 PM
Student 31
Student 31 - avatar
0
Thanks
19th May 2020, 6:00 PM
Student 31
Student 31 - avatar
0
Revise this chapter... How to call methods from main method.. https://www.sololearn.com/learn/Java/2152/
19th May 2020, 6:22 PM
Jayakrishna 🇮🇳