会员
周边
新闻
博问
闪存
众包
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
redos
博客园
首页
新随笔
联系
订阅
管理
05 2018 档案
将本地代码上传到GitHub
摘要:1 git init 2 git add . 3 git commit -m "第一次提交" 4 git remote add origin https://github.com/qixlin/spring.git 5 git pull origin master --allow-unrelated
阅读全文
posted @
2018-05-28 17:54
redos
阅读(116)
评论(0)
推荐(0)
父类必须保证存在无参构造器
摘要:使用继承时,基类必须保证存在默认构造器(无参构造器),子类在实例化时,会首先自动调用隐式调用父类的无参构造器,允许子类与父类的构造器列表不一致,子类使用有参构造器实例化对象时,最好显式调用父类构造器,防止出错。
阅读全文
posted @
2018-05-27 22:43
redos
阅读(343)
评论(0)
推荐(0)
公告