You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello, these are some suggestions to implement some solid principles.
a class should handle the calculation of Sailors salaries.
some functions like randSailorid must have a Sailor object as a parameter in order not to be used by other classes.
When adding passengers, other types of passengers such as animal passengers are left aside, so it is recommended to create a parent class "Passengers" to use "HumanPassengers" "AnimalPassengers", or any other that may be presented.
The text was updated successfully, but these errors were encountered:
Hello, these are some suggestions to implement some solid principles.
a class should handle the calculation of Sailors salaries.
some functions like randSailorid must have a Sailor object as a parameter in order not to be used by other classes.
When adding passengers, other types of passengers such as animal passengers are left aside, so it is recommended to create a parent class "Passengers" to use "HumanPassengers" "AnimalPassengers", or any other that may be presented.
The text was updated successfully, but these errors were encountered: