码迷,mamicode.com
首页 > Windows程序 > 详细

C# 方法

时间:2018-11-29 12:20:53      阅读:180      评论:0      收藏:0      [点我收藏+]

标签:static   write   dog   ret   csharp   public   names   har   stat   

using System;
namespace Application {
    class Dog {
        static void Main(string[] args){
            Dog dog=new Dog();
            int a=dog.say();
            Console.WriteLine("{0}",a);
        }   
        public int say(){
            return 1;
        }
    }
}

  

C# 方法

标签:static   write   dog   ret   csharp   public   names   har   stat   

原文地址:https://www.cnblogs.com/mlh1421/p/10037115.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!