オブジェクト脳のつくり方

Similar documents
Microsoft Word - keisankigairon.ch doc

PowerPoint Presentation

10/ / /30 3. ( ) 11/ 6 4. UNIX + C socket 11/13 5. ( ) C 11/20 6. http, CGI Perl 11/27 7. ( ) Perl 12/ 4 8. Windows Winsock 12/11 9. JAV

K227 Java 2

: : : TSTank 2

,,,,., C Java,,.,,.,., ,,.,, i

10K pdf

Exam : 1z1-809-JPN Title : Java SE 8 Programmer II Vendor : Oracle Version : DEMO Get Latest & Valid 1z1-809-JPN Exam's Question and Answers 1 from Ac

Java (7) Lesson = (1) 1 m 3 /s m 2 5 m 2 4 m 2 1 m 3 m 1 m 0.5 m 3 /ms 0.3 m 3 /ms 0.6 m 3 /ms 1 1 3

Java (5) 1 Lesson 3: x 2 +4x +5 f(x) =x 2 +4x +5 x f(10) x Java , 3.0,..., 10.0, 1.0, 2.0,... flow rate (m**3/s) "flow

L1 What Can You Blood Type Tell Us? Part 1 Can you guess/ my blood type? Well,/ you re very serious person/ so/ I think/ your blood type is A. Wow!/ G

やさしいJavaプログラミング -Great Ideas for Java Programming サンプルPDF

新・明解Java入門


Microsoft PowerPoint ppt

. IDE JIVE[1][] Eclipse Java ( 1) Java Platform Debugger Architecture [5] 3. Eclipse GUI JIVE 3.1 Eclipse ( ) 1 JIVE Java [3] IDE c 016 Information Pr

ALG ppt

3 Java 3.1 Hello World! Hello World public class HelloWorld { public static void main(string[] args) { System.out.println("Hello World");

IE6 2 BMI chapter1 Java 6 chapter2 Java 7 chapter3 for if 8 chapter4 : BMI 9 chapter5 Java GUI 10 chapter6 11 chapter7 BMI 12 chap

untitled

Java演習(2) -- 簡単なプログラム --

8 if switch for while do while 2

Java学習教材

アルゴリズムとデータ構造1

class IntCell { private int value ; int getvalue() {return value; private IntCell next; IntCell next() {return next; IntCell(int value) {this.value =

class IntCell { private int value ; int getvalue() {return value; private IntCell next; IntCell next() {return next; IntCell(int value) {this.value =

-2-

ALG ppt

Java演習(4) -- 変数と型 --

JAVA とテンプレート

I java A



226

r1.dvi

text_08.dvi

VB.NETコーディング標準

C. S2 X D. E.. (1) X S1 10 S2 X+S1 3 X+S S1S2 X+S1+S2 X S1 X+S S X+S2 X A. S1 2 a. b. c. d. e. 2

oop1

明解Javaによるアルゴリズムとデータ構造

問 次の Fortran プログラムの説明及びプログラムを読んで、設問に答えよ。

2015-s6-4g-pocket-guidebook_H1-4.indd

平成29年度英語力調査結果(中学3年生)の概要

elemmay09.pub

基本情報STEP UP演習Java対策


Exam : 1z0-809 日本語 (JPN) Title : Java SE 8 Programmer II Vendor : Oracle Version : DEMO 1 / 8 Get Latest & Valid 1z0-809-JPN Exam's Question and Answe

Javaセキュアコーディングセミナー2013東京第1回 演習の解説

解きながら学ぶJava入門編

(Eclipse\202\305\212w\202\324Java2\215\374.pdf)

明解Java入門編


新・明解Javaで学ぶアルゴリズムとデータ構造

西川町広報誌NETWORKにしかわ2011年1月号


キャリアワークショップ教師用

Public relations brochure of Higashikawa April No.750 CONTENTS

3 2

Thread

JavaプログラミングⅠ

Page 1 of 6 B (The World of Mathematics) November 20, 2006 Final Exam 2006 Division: ID#: Name: 1. p, q, r (Let p, q, r are propositions. ) (10pts) (a

JavaプログラミングⅠ

r2.dvi


問 次の Fortran プログラムの説明及びプログラムを読んで、設問に答えよ。

Java 3 p.2 3 Java : boolean Graphics draw3drect fill3drect C int C OK while (1) int boolean switch case C Calendar java.util.calendar A

IPSJ SIG Technical Report Vol.2013-CE-119 No /3/15 enpoly enpoly enpoly 1) 2) 2 C Java Bertrand Meyer [1] 1 1 if person greeting()

Java updated

日本語教育紀要 7/pdf用 表紙

open / window / I / shall / the? something / want / drink / I / to the way / you / tell / the library / would / to / me

untitled

300, , : 1

1 Java Java GUI , 2 2 jlabel1 jlabel2 jlabel3 jtextfield1 jtextfield2 jtextfield3 jbutton1 jtextfield1 jtextfield2 jtextfield3

2


untitled

6-1

Program Design (プログラム設計)

TopLink å SampleClient.java... 5 Ò readallsample() querysample() cachesample() Ç..


Javaセキュアコーディングセミナー東京 第3回 入出力(File, Stream)と例外時の動作 演習解説

Microsoft Word - j201drills27.doc

Answers Practice 08 JFD1

Java (9) 1 Lesson Java System.out.println() 1 Java API 1 Java Java 1

第33回鋼構造基礎講座 鋼橋の架設および解体撤去工法-より一層の安全性と品質の向上に向けて-

16_.....E...._.I.v2006

(Java/FX ) Java CD Java version Java VC++ Python Ruby Java Java Eclipse Java Java 3 Java for Everyone 2 10 Java Midi Java JavaFX Shape Canvas C

tikeya[at]shoin.ac.jp The Function of Quotation Form -tte as Sentence-final Particle Tomoko IKEYA Kobe Shoin Women s University Institute of Linguisti


2 static final int DO NOTHING ON CLOSE static final int HIDE ON CLOSE static final int DISPOSE ON CLOSE static final int EXIT ON CLOSE void setvisible

CONTENTS Public relations brochure of Higashikawa September No.755 2

5 p Point int Java p Point Point p; p = new Point(); Point instance, p Point int 2 Point Point p = new Point(); p.x = 1; p.y = 2;

明解Javaによるアルゴリズムとデータ構造

CONTENTS Public relations brochure of Higashikawa November No.745 Higashikawa 215 November 2

ALG ppt

r02.dvi


ohp02.dvi

(Microsoft PowerPoint - \223\306\217KJAVA\221\346\202R\224\ ppt)

ex01.dvi

Transcription:

2003 12 16 ( )

ML

Java,.NET, UML J2EE, Web Java, J2EE.NET SI

ex. )

OO OO OO OO OO

(Controller) (Promoter) (Analyzer) (Supporter) http://nba.nikkeibp.co.jp/coachsp.html

It takes time.

OO OK

OO

1. 2. 3.

1. 2.

PC

Jackson NEC

Ex. Michael Michael ckson Hoo!

A B B A A B B A A B A B B

Java Java public interface Product { public int getprice(); public class NormalProduct implements Product { : public int getprice() { return price; private int price;

(OO,DOA,

1. 2. 3.

Jackson NEC NEC

x 0.05 x 0.05 x 0.07 ProjectUtil.calcTax( ) ProjectUtil.calcTax(, ) Product public BigDecimal gettax(){ return Money.getTax(, ); private ; private ; ProjectUtil Product Money tax = product.gettax();

B A C

A B

http://www.geocities.jp/objectbrain/ Java

private Ningen.java public class Ningen{ private String name; private int shincho; public Ningen(String name, int shincho) { this.name = name; this.shincho = shincho; public void taberu(){ System.out.println(" "); taberu neru public void neru(){ System.out.println(" ");

Manager.java public class Manager{ public static void main(string[] args){ Ningen ningen = new Ningen( ", 169); C: > javac *.java Manager.class Ningen.class main Manger C: > java Manager ningen.taberu(); ningen.neru(); Ningen Ningen taberu neru Java 169

C: > javac Shacyo Tanto C: > javac Shacyo Shunin C: > javac Shacyo Bucho

Shain.java Shunin.java public interface Shain { public void standup(); public class Shunin implements Shain { public void standup(){ System.out.println(" "); class interface Interface Tanto.java Bcho.java public class Tanto implements Shain { public void standup(){ System.out.println(" System.out.println(" "); "); implements Shain Tanto public class Bucho implements Shain { public void standup(){

Shacho.java Shacho main String args public class Shacho { public static void main(string[] args) { Shain shain = null; if(args[0].equals("tanto")) { shain = new Tanto(); if(args[0].equals("shunin")) { shain = new Shunin(); if(args[0].equals("bucho")) { shain = new Bucho(); shain.standup(); args [0] Tanto { Tanto tanto = new Tanto();

300 C: > javac Shacyo Tanto 100 100 C: > javac Shacyo Shunin 100 100 201 C: > javac Shacyo Bucho 100

Shain.java Shunin.java public interface Shain { public void standup(); public int getkyuryo(int kihonkyu); Tanto.java public class Shunin implements Shain { public void standup(){ System.out.println(" "); public int getkyuro(int kihonkyu){ return kihonkyu * 2 + 1; public class Tanto implements Shain { public void standup(){ System.out.println(" "); public int getkyuryo(int kihonku){ return kihonkyu; Bucho.java public class Bucho implements Shain { public void standup(){ System.out.println(" "); public int getkyuryo(int kihonkyu){ return kihonkyu * 3;

Shacho.java public class Shacho { public static void main(string[] args) { Shain shain = null; if(args[0].equals("tanto")) { shain = new Tanto(); if(args[0].equals("shunin")) { shain = new Shunin(); if(args[0].equals("bucho")) { shain = new Bucho(); int kihonkyu = Integer.parseInt(args[1]); int kyuryo = shain.getkyuryo(kihonkyu); shain.standup(); System.out.println(" int Interface " + kyuryo + " ");

C: > javac Shacyo Torishimariyaku 100 402

C: > javac Shacyo Tanto 100 100 300 C: > javac Shacyo Shunin 100 100 201 300 C: > javac Shacyo Bucho 100 300 300

Shain.java abstract public class Shain { public void setkihonkyu(int kihonkyu) { this.kihonkyu = kihonkyu; public int getkihonkyu() { return kihonkyu; public int getbonus(){ return kihonkyu * 3; abstract public void standup(); abstract public int getkyuryo(); private int kihonkyu; interface abstract class abstract interface Abstract setkihonkyu()

Tanto.java Shunin.java public class Tanto extends Shain { public class Shunin extends Shain { public void standup(){ public void standup(){ System.out.println(" "); public int getkyuryo(){ int kihonkyu = getkihonkyu(); return kihonkyu; System.out.println(" "); public int getkyuryo(){ int kihonkyu = getkihonkyu(); return kihonkyu * 2 + 1; interface abstruct class implements extends abstract

Shacho.java public class Shacho { public static void main(string[] args) { Shain shain = null; if(args[0].equals("tanto")) { shain = new Tanto(); if(args[0].equals("shunin")) { shain = new Shunin(); if(args[0].equals("bucho")) { shain = new Bucho(); int kihonkyu = Integer.parseInt(args[1]); shain.setkihonkyu(kihonkyu); int kyuryo = shain.getkyuryo(); shain.standup(); System.out.println(" " + kyuryo + " "); System.out.println(" " + shain.getbonus() + " ");

ShainFactory.java Shacho.java public class ShainFactory { public class Shacho { public Shain factory(string type){ public static void main(string[] args) if(type.equals("tanto")) { { return new Tanto(); ShainFactory shainfactory = new ShainFactory(); Shain shain = if(type.equals("shunin")) { shainfactory.factory(args[0]); return new Shunin(); int kihonkyu = Integer.parseInt(args[1]); shain.setkihonkyu(kihonkyu); if(type.equals("bucho")) { int kyuryo = shain.getkyuryo(); return new Bucho(); shain.standup(); System.out.println(" " + kyuryo return new Tanto(); + " "); new System.out.println(" " + ShainFactory,if shain.getbonus() + " "); if new new

gorgeous 1.If you say that something is gorgeous, you mean that it gives you a lot of pleasure or is very attractive. 2.If you describe someone as gorgeous, you mean that you find them very sexually attractive. 3.If you describe things such as clothes and colors as gorgeous, you mean they are bright, rich, and impressive.

High Cohesion If If there there is is cohesion cohesion within within a a society, society, organization, organization, or or group, group, the the different different members members fit fit together together well well and and form form a a united united while. while.

Low Coupling 2 1 If If one one piece piece of of equipment equipment is is coupled coupled to to another, another, it it is is joined joined to to it it so so that that the the two two pieces pieces of of equipment equipment work work together. together. Coupling

Responsiblity -able Respons-ablity responsibility If you have responsibility for something or someone, or if they are your responsibility, it is your job or duty to deal with them and to take decisions relating to them. A responsiblitiy = an obligation to perform a task or know information #obligation #If you have an obligation to do something, it is your duty do that thing. #duty #If you say that something is your duty, you believe that you ought to do it because it is your responsiblitiy.

http://www.geocities.jp/objectbrain/ Collins COBUILD CD-ROM Object Design Rebecca Wirfs-Brock and Alan McKean