Advertisement
Guest User

Untitled

a guest
Oct 18th, 2019
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.61 KB | None | 0 0
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6.  
  7. namespace ClassDogger
  8. {
  9. class Labrador : Dog
  10. {
  11. public Labrador(string name, int age, double length, double withers, double weight, bool sex) : base(name, age, length, withers, weight, sex)
  12. {
  13. }
  14.  
  15. public override double tail()
  16. {
  17. if (sex == true)
  18. {
  19. return 2 + length - withers;
  20. }
  21. else
  22. {
  23. return length - withers;
  24. }
  25.  
  26. }
  27. }
  28. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement