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
12 odpowiedzi
+ 2
Student 31 where is the main method?
+ 1
Just like you run it on any other IDE.
What do you mean when you say a proper object oriented program?
+ 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.
0
I am unable to run object oriented programs on Sololearn
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);
}
}
0
How will I fix it?
0
In the question it is given to use the methods,
void input() , void calculateVol() , void display()
0
Thanks
0
Revise this chapter... How to call methods from main method..
https://www.sololearn.com/learn/Java/2152/