java programming

  • By ekte
  • 05 Mar 2016
  • 1 Comments
  • 1540
what are doing these methods  and when i use the methods get or set? which are the difference between this methods?
why i have mistakes?
  • tags:
Author Profile

Answers

You are using wrong method. I have done some corrections in your program. Hope this helps you to solve your problem.

-----------------------------------------------------------------------------------------------------------

foititis(int am, double mo)     {         Armitrwou=am;         MesosOros=mo; }  public int getArmitrwou()    {         return Armitrwou; }  public void setArmitrwou(int am)    {         Armitrwou=am; }  public double getMesosOros()    {         return getMesosOros; } 
public void setMesosOros(double mo)    {         MesosOros=mo;
}
        
Hope this Helps.


Solution #1

Leave a Comment

message*