Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- namespace ClassDogger
- {
- class Labrador : Dog
- {
- public Labrador(string name, int age, double length, double withers, double weight, bool sex) : base(name, age, length, withers, weight, sex)
- {
- }
- public override double tail()
- {
- if (sex == true)
- {
- return 2 + length - withers;
- }
- else
- {
- return length - withers;
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement