🔒 Closed Pa check naman po code ko sa Java/UML. Please

Status
Not open for further replies.

PHC - NoName

Honorary Poster
Beginner lang po nag try lang po. Ganto poba yun? Pahelp naman po. Ayan pong nasa picture yung gagawin. Thank you po.

Public class Fare {

Private float fare;
Public set fare() ;
Public get fare() ;
}


Public class Senior Fare extends fare {

Private set fare(30.00)
Private get fare(24.00)
}


Public class Student Fare extends fare {

Private set fare(30.00)
Private get fare(25.5)
}


Thank you po.

Screenshot_20220331_200154.webp
 
1. Define the proper getter and setter for class Fare. Use the proper syntax for defining the method.
2. Define the class properly on senior fare. Space is not allowed when defining the name of the class. Please do research on this.
3. Use the get and set methods from the parent class (Fare) to set a new values of the child classes (SeniorFare, StudentFare)
 
1. Define the proper getter and setter for class Fare. Use the proper syntax for defining the method.
2. Define the class properly on senior fare. Space is not allowed when defining the name of the class. Please do research on this.
3. Use the get and set methods from the parent class (Fare) to set a new values of the child classes (SeniorFare, StudentFare)
Okay po, thank you po.
 
Status
Not open for further replies.

About this Thread

  • 2
    Replies
  • 575
    Views
  • 2
    Participants
Last reply from:
PHC - NoName

Trending Topics

Online now

Members online
799
Guests online
1,200
Total visitors
1,999

Forum statistics

Threads
2,286,904
Posts
29,041,069
Members
1,217,234
Latest member
jordy0943
Back
Top