• 博客园logo
  • 会员
  • 众包
  • 新闻
  • 博问
  • 闪存
  • 赞助商
  • HarmonyOS
  • Chat2DB
    • 搜索
      所有博客
    • 搜索
      当前博客
  • 写随笔 我的博客 短消息 简洁模式
    用户头像
    我的博客 我的园子 账号设置 会员中心 简洁模式 ... 退出登录
    注册 登录

dengovo

  • 博客园
  • 联系
  • 订阅
  • 管理

公告

2022年7月20日

构造方法

摘要: 构造方法 public class Application { public static void main(String[] args) { //new 实例化了一个对象 Person person = new Person("dsy",22); // System.out.println(pe 阅读全文

posted @ 2022-07-20 20:02 邓了个邓 阅读(33) 评论(0) 推荐(0)

静态方法和非静态方法的调用

摘要: 静态方法和非静态方法的调用 静态 public class Demo02 { public static void main(String[] args) { //静态 Student.say(); } } public class Student { //静态方法 public static vo 阅读全文

posted @ 2022-07-20 16:30 邓了个邓 阅读(38) 评论(0) 推荐(0)

 
博客园  ©  2004-2025
浙公网安备 33010602011771号 浙ICP备2021040463号-3