⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 cat.cs

📁 Microsoft?Visual C#?.NET (Core Reference)
💻 CS
字号:
using System;
namespace MSPress.CSharpCoreRef.Animals
{
    public class Cat: LandAnimal
    {
        public Cat()
        {
        }

        public Cat(string aName)
        {
            _name = aName;
        }

        public void OverthrowHumans()
        {
            Console.WriteLine("Cat: " + _name + " is planning to overthrow the humans."); 
        }

        public void CoughUpFurballs()
        {
            Console.WriteLine("Cat: " + _name + " is coughing up furballs."); 
        }

        // Fields are normally protected or private. This field is public
        // in order to describe the syntax.
        public static int mouseEncounters;
    }
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -