摘要:
协变类型返回也是覆盖方法的一种,jdk5开始支持的一种:子类覆盖方法返回可以是子类返回的子类,这个比较拗口 /* * To change this template, choose Tools | Templates * and open the template in the editor. */ 阅读全文
摘要:
多态值得注意的地方:成员变量,和静态方法是不存在多态的概念的 /* * To change this template, choose Tools | Templates * and open the template in the editor. */ package com.fengli; /* 阅读全文
摘要:
在网上看了其他写的,在本地执行的时候有问题,补充说明下,不知道是数据版本问题还是什么,值得注意的地方 红色部分必须是这样的,不然都不会成功 create table user1( id int(10) not null auto_increment, name varchar(50), sex in 阅读全文
摘要:
DROP TABLE IF EXISTS `order_seq`;CREATE TABLE `order_seq` (`timestr` int(11) NOT NULL,`order_sn` int(11) NOT NULL) ENGINE=InnoDB DEFAULT CHARSET=utf8; 阅读全文