Download presentation
Presentation is loading. Please wait.
Published bySherilyn Harrington Modified over 9 years ago
1
Dog.cs public string name = "Sharo"; public string Name { get { return this.name; } } public void Bark() { Console.WriteLine("wow-wow"); } public void DoSth() { this.Bark(); } D D
2
Kid.cs class Kid { public void CallTheDog(Dog dog) { Console.WriteLine("Come, " + dog.name); } public void WagTheDog(Dog dog) { dog.Bark(); } R R
3
Dog.cs internal string name = "Sharo"; public string Name { get { return this.name; } } internal void Bark() { Console.WriteLine("wow-wow"); } public void DoSth() { this.Bark(); } D D
4
Kid.cs class Kid { public void CallTheDog(Dog dog) { Console.WriteLine("Come, " + dog.name); } public void WagTheDog(Dog dog) { dog.Bark(); } R R
5
Dog.cs private string name = "Sharo"; public string Name { get { return this.name; } } private void Bark() { Console.WriteLine("wow-wow"); } public void DoSth() { this.Bark(); } D D
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.