//定义静态方法
class SQLHelper
{
public static string aaa()
{
return “你好\"
}
}
调用:
SQLHelper.aaa(); // 类名.方法名
//定义动态方法
class SQLHelper
{
public string aaa()
{
return “你好\"
}
}
调用:
SQLHelper s =new SQLHelper ();
s.aaa();
本文地址:https://www.stayed.cn/item/19297
转载请注明出处。
本站部分内容来源于网络,如侵犯到您的权益,请 联系我