--建表语句create table student(id number(9),name varchar2(64),age number(5));create table class(id number(9),name varchar2(64),teacherid number(9),student...
分类:
数据库 时间:
2014-07-29 11:55:16
阅读次数:
172
package ObjectIntOutputStreamDemo;
import java.io.Serializable;//注意每个类都要有这个接口
public class Student implements Serializable {
private int id;
public Student(int id, String name) {
super();
this....
分类:
其他好文 时间:
2014-07-28 15:56:53
阅读次数:
246
一个练习:1、student表1:zhangsan:boy:12:compute3:lisi:boy:32:math2:xiaoli:girl:23:meish模式:A = load 'student' using PigStorage(':') as (sno:chararray,sname:ch...
分类:
其他好文 时间:
2014-07-28 14:57:03
阅读次数:
176
---------------------- ASP.Net+Unity开发、.Net培训、期待与您交流! ----------------------面向对象的三大特性(精华):(成员变量、方法)封装、继承、多态。一、封装1.为什么需要封装?根据以前学的内容,假如我声明一个student类,里面有...
分类:
其他好文 时间:
2014-07-28 11:19:40
阅读次数:
184
//类class Student { public int StuNo { get; set; } public string StuName { get; set; } public int StuAge { get; set; } }//索引器class MyClass { //存储5个学员信息...
分类:
其他好文 时间:
2014-07-27 23:04:39
阅读次数:
189
Home Assignment:- * Create a menu driven application where you will have 2 types of users to login in Admin and Student *写一个面板程序,要求用户可以Admin和Student两种...
分类:
其他好文 时间:
2014-07-26 14:23:51
阅读次数:
325
http://www.cnblogs.com/QM80/p/3647819.html如果要修改对象的属性值1.一般情况下是直接利用对象属性的set方法来修改: Student *stu = [[Student alloc] init]; // set方法的两种书写格式 [stu s...
分类:
移动开发 时间:
2014-07-26 01:07:26
阅读次数:
265
通过一个例子来看-------------------------------------------------------Student.csusingSystem;
usingSystem.Collections.Generic;
usingSystem.Linq;
usingSystem.Text;
usingSystem.Threading.Tasks;
usingSystem.Collections;
namespaceConsoleApplication6
{
publiccla..
分类:
其他好文 时间:
2014-07-25 11:36:22
阅读次数:
214
我们都知道 this 和 super 关键字,在 调用 构函数的时候,
都必须写在第一行中!
this 调用的是当前的类的构造函数!
super 调用的是父类的构造函数!
this和super可不可以重复??
class Student extends Person
{
int grade;
Student()
{
super();
S...
分类:
其他好文 时间:
2014-07-25 10:59:31
阅读次数:
246
1 首先://注意在C和C++里不同
在C中定义一个结构体类型要用typedef:
typedef struct Student
{
int a;
}Stu;
于是在声明变量的时候就可:Stu stu1;(如果没有typedef就必须用struct Student stu1;来声明)
这里的Stu实际上就是struct Stud...
分类:
其他好文 时间:
2014-07-25 10:58:51
阅读次数:
197