3. オブジェクトとは
Object
1 (五感で知覚できる)物, 物体
a tiny object|ちっぽけな物
a luminous object|発光体.
2 (思考感情行動などの)対象, 的(まと) of ...
an object of worship|崇拝の対象
an object of research|研究の対象.
3 ふつう単数形 (…の)目的, 目当て of ...
for that object|それを目当てに
attain one's object|目的を達成する
with the object of rescuing the flood victims|洪水の被災者救護の目的で.
英語圏の人は有形も無形
もObject
13年4月21日日曜日
4. Orientedとは
(…に)関心を向けた, (…を)志向する toward, to ...
family- oriented people|マイホーム主義の人びと.
「…志向[優先, 本位]の」
a female--oriented society|女性志向[中心]の社会
business--oriented|ビジネス志向の
consumer--oriented|消費者本位の
diploma- -oriented|学歴偏重の
profit--oriented|利益追求型の
a wine--oriented restaurant|ワインに重点を置くレストラン.
Object-oriented
オブジェクトに重点をおいた、オブジェクトに関心を向けた、オブジェクト本位の、オブジェクトを
中心とした
ちなみに、Orientは東洋、つまりヨーロッパからみて東の方向という
意味らしい
13年4月21日日曜日
10. Student クラス
class Student {
String name = null;
String id = null;
String subject = null;
int degree = -1;
String schoolName = null;
String sex = null;
public void wakeup() {}
public void gotoSchool(){}
public void attendsClass(){}
public void askQuestion(){}
public void getTaller(){};
public void increaseWeight(){}
}
13年4月21日日曜日
11. インスタンス化
インスタンス化とはオブジェクトを発生させること
class School {
public static void main(String[] args){
Student studentA = new Student();
studentA.schoolName = "金沢高専 ;
studentA.subject = "グローバル情報工学科 ;
studentA.degree = 2,
studentA.id = "G000001 ;
studentA.name = 山田太郎 ;
studentA.gotoSchool();
}
}
13年4月21日日曜日