zoukankan      html  css  js  c++  java
  • 课后作业 10 ---多种引用方法的练习

         class Program
        {
            static void Method()//无参数 无返回值方法
            {
                Console.WriteLine("欢迎使用!");
            }
            static void Method(int i)//有参数 无返回值方法
            {
    
                Console.WriteLine("欢迎使用版本" + i);
            }
            static string Method1(int i )//有参数 有返回值方法
            {
                Console.WriteLine("欢迎使用版本" + i);
                return "会给您更好的体验";
            }
            static void Main(string[] args)
            {
                Console.WriteLine("无参数 无返回值的方法引用:");
                Method();
    
                Console.WriteLine("有参数 无返回值的方法引用");
                Method(5);
    
                Console.WriteLine("有参数 有返回值的方法引用:");
                string str = Method1(6);
                Console.WriteLine(str);
    
                Console.ReadLine();
            }
        }
    
  • 相关阅读:
    键盘快捷键
    电脑命令行命令
    网络基础TCP/IP
    运算符优先级
    元字符汇总
    正则表达式
    模板语法(DOM与Vue数据绑定)
    computed、methods、watch
    vue实例
    坐标轴
  • 原文地址:https://www.cnblogs.com/whytohow/p/4725676.html
Copyright © 2011-2022 走看看