0
Plz help me resolve error in my code
3 Respuestas
+ 3
Remove the first line (the package)
Then either put "static" between public and class at class Cust. Or move the definition of class Cust outside the class Customer.
+ 2
JaguaR , write class Cust separately. Look at the code.
https://code.sololearn.com/cnvlW0pJW0LL/?ref=app
+ 1
Hape
If you make class static then class members should also be static so it is not better solution.
Making seperate class is better solution.