🔒 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
  • 572
    Views
  • 2
    Participants
Last reply from:
PHC - NoName

Online now

Members online
950
Guests online
882
Total visitors
1,832

Forum statistics

Threads
2,276,241
Posts
28,968,601
Members
1,231,180
Latest member
lumb
Back
Top