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

Trending Topics

Online now

Members online
836
Guests online
4,188
Total visitors
5,024

Forum statistics

Threads
2,308,667
Posts
29,186,536
Members
1,191,160
Latest member
CookieCutter00
Back
Top