Guest User

Untitled

a guest
Jun 19th, 2018
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.41 KB | None | 0 0
  1. //Child class extending the abstract class
  2. public class Male extends HealthAbstract {
  3.  
  4. public Male() {
  5. System.debug('Welcome to the male class which extends Health Abstract');
  6. }
  7.  
  8. public override String workoutIntensity(Integer BicepsSize, Integer ChestSize) {
  9. if(BicepsSize > 16 && ChestSize > 40) {
  10. return 'More';
  11. } else {
  12. return 'Less';
  13. }
  14. }
  15.  
  16. }
Add Comment
Please, Sign In to add comment