第一步: 新建Java工程 FirstSpringJAVA 第二步:导入相关的spring jar包 第三步: 新建接口 Father.java 第四步:新建两个接口实现类 Son1.java Son2.java 第五步:编写针对上面两个类的配置文件 Son1Config.java Son2Conf ...
分类:
编程语言 时间:
2017-08-17 18:36:08
阅读次数:
238
#自实现继承(单次继承构造函数)
//父类的构造函数
functionFather(name,age){
this.name=name
this.age=age
}
//父类的原型对象
Father.prototype={
constructor:Father,
say:function(){
console.log(‘iam‘+this.name+‘,‘+this.age+‘yearsold‘)
}
}
//类继承:只继承父类..
分类:
编程语言 时间:
2017-08-06 19:26:53
阅读次数:
170
一种能够学习家谱关系的简单神经网络 血缘一共同拥有12种关系: son, daughter, nephew, niece, father, mother, uncle, aunt, brother, sister, husband, wife 有1个英国家庭以及1个意大利家庭,每一个家庭有12个人。 ...
分类:
Web程序 时间:
2017-08-05 14:57:00
阅读次数:
352
/*Sql递归查询*/ /* 实际就是把所有树的节点查找出来 Oracle的一个表中也可以保存树形结构信息,用start with...connect by等关键字 eg:创建表并插入数据 */ Create table Tree(son char(10),father char(10)); ins ...
分类:
数据库 时间:
2017-08-04 13:46:28
阅读次数:
202
所有关系都是关联关系。 三方面标识: a、语义 b、图示 c、编码 关联: 语义:两个对象相关即是关联; 图示:以实线(箭头)表示; 编码:被关联方作为关联方的属性存在; 继承: 语义:具备is a或has a关系的类; 图示:线+三角箭头(箭头指向father) 编码:son extends pa ...
分类:
其他好文 时间:
2017-07-26 13:47:12
阅读次数:
136
## vue学习笔记 ### 组件之间的通讯1. 父组件到子组件```js //father <div> <son msg="父组件的信息写在这"></son> <son title="title"></son> <!--:title--> </div> <script> export defaul ...
分类:
其他好文 时间:
2017-07-25 15:40:17
阅读次数:
129
从对象的内存角度来理解试试.假设现在有一个父类Father,它里面的变量需要占用1M内存.有一个它的子类Son,它里面的变量需要占用0.5M内存.现在通过代码来看看内存的分配情况:Father f = new Father(); //系统将分配1M内存.Son s = new Son(); //系统 ...
分类:
编程语言 时间:
2017-07-21 12:25:52
阅读次数:
152
1 #include 2 #include 3 #include 4 #include 5 using namespace std; 6 7 const int M = 100005; 8 int a, b; 9 int father[M]; //记录父节点 10 bool circle; //判断... ...
分类:
其他好文 时间:
2017-07-20 17:28:37
阅读次数:
108
Problem B Miscalculation Input: Standard Input Time Limit: 1 secondBob is an elementary schoolboy, not so good at mathematics. He found Father’s calcu ...
分类:
其他好文 时间:
2017-07-19 11:54:14
阅读次数:
148