29th Aug 2018, 3:20 PM
Devang H Baroliya
Devang H Baroliya - avatar
9 odpowiedzi
+ 9
D.H.Baroliya : Solution 🤗🙆‍♂️ 💗 Write some pseudo code.
31st Aug 2018, 2:32 AM
NimWing Yuan
NimWing Yuan - avatar
+ 8
D.H.Baroliya: Just happened a problem with Java Compiler at Sololearn ! 😞😟😰😬🤤😨☹😯🙁 https://www.sololearn.com/discuss/1478429/?ref=app
30th Aug 2018, 4:55 PM
NimWing Yuan
NimWing Yuan - avatar
30th Aug 2018, 5:15 AM
NimWing Yuan
NimWing Yuan - avatar
+ 5
D.H.Baroliya : Solution with main function at end of the program 🤗🙆‍♂️ 💗 https://code.sololearn.com/cP2uKKP4RhV6/?ref=app
30th Aug 2018, 8:06 AM
NimWing Yuan
NimWing Yuan - avatar
+ 3
sorry i can not understand properly
30th Aug 2018, 2:50 PM
Devang H Baroliya
Devang H Baroliya - avatar
+ 2
but why we need to write main function at starting 0f the program
30th Aug 2018, 7:06 AM
Devang H Baroliya
Devang H Baroliya - avatar
+ 2
hmmm I try the program in notpad at that time my code is properly run any thing is wrong in sololearn with java compiler
31st Aug 2018, 1:45 AM
Devang H Baroliya
Devang H Baroliya - avatar
+ 1
Cambia de posicion a la clases Main y ponla en primer lugar class Main{ public static void main(String args[]) { B obj=new B(10,20); obj.call(); } } class A { int no; void disp() { System.out.println("super class method called"); System.out.println("value of no in super class is:"+no); } } class B extends A { int no; B(int a,int b) { no=a; super.no=b; } void disp() { System.out.println("base class method called"); System.out.println("value of no in base class is:"+no); } void call() { disp(); super.disp(); } }
30th Aug 2018, 12:03 AM
Michaell Alavedra
+ 1
In this code i want to eliminate the void call method from the class B and write the method call disp(); and super.disp(); in the main method can i write and if yes and how can i write plz tell me class A { int no; void disp() { System.out.println("super class method called"); System.out.println("value of no in super class is:"+no); } } class B extends A { int no; B(int a,int b) { no=a; super.no=b; } void disp() { System.out.println("base class method called"); System.out.println("value of no in base class is:"+no); } void call() { disp(); super.disp(); } } class Main { public static void main(String args[]) { B obj=new B(10,20); obj.call(); } }
31st Aug 2018, 1:49 AM
Devang H Baroliya
Devang H Baroliya - avatar