forked from blakemcadow/JOEYYYYYYY
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dog.cs
42 lines (38 loc) · 1.1 KB
/
Dog.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ConsoleApp1
{
class Dog : Animal
{
public Dog(string startBreed, int startingHappiness, bool startIsWalking, string startName)
{
breed = startBreed;
happiness = startingHappiness;
IsWalking = startIsWalking;
name = startName;
}
public Dog(string startBreed, int startinghappiness, string startName)
{
breed = startBreed;
happiness = startinghappiness;
name = startName;
}
public void bark()
{
Console.WriteLine("The dog " + name + " said \"Woof!\" ");
Console.ReadLine();
}
public void pet()
{
happiness += 10;
Console.WriteLine(name + " liked that a lot");
Console.WriteLine(name + "'s happiness is now " + happiness.ToString());
Console.ReadLine();
Console.WriteLine("poop");
Console.ReadLine();
}
}
}