?????????? ????????? ???????????????????????? Object-Oriented Programming, Design and Analysis - PowerPoint PPT Presentation

1 / 38
About This Presentation
Title:

?????????? ????????? ???????????????????????? Object-Oriented Programming, Design and Analysis

Description:

Object-Oriented Programming, – PowerPoint PPT presentation

Number of Views:172
Avg rating:3.0/5.0
Slides: 39
Provided by: wir82
Category:

less

Transcript and Presenter's Notes

Title: ?????????? ????????? ???????????????????????? Object-Oriented Programming, Design and Analysis


1
?????????? ?????????????????????????????????Obje
ct-Oriented Programming, Design and Analysis
  • ???????????????????????????
  • ?????????????????
  • ?????????????? ??????????????????

2
???????????????????????
  • ??????????????????????????????????????????????????
    ?????? ??????????? Problem space
  • ??????????????????????????????????????????????????
    ??????????????????? ?? ????? ???????
    ??????????????? ????????????? ????????????
    ??????????????????????

????????????????????????????? ?????????????????
?????????????????? ??????????? ???????
3
(No Transcript)
4
?????????????? ???? (Alan Kay)
?????????????????????????? small Talk
?????????????????????????????????????????
????????????????????????????????????
  • ???? ?????????????
  • ??????? ??? ??????????????????????????????????????
  • ????????????????????????????
  • ???????????????
  • ??????????????????????????????????????????????????
    ???????

5
???? ?????????????
  • ?????????????????????????????????? ?
    ??????????????????????????????????????????????????
    ????????????????? JAVA ???? ??????????????????????
    ???????????????????????????? JAVA
    ??????????????????????????? ???? ??????????????
    ???????

6
??????????????????????
7
???????????????????????
  • ????????????????????????????????????????????
    ????? ?????????????????????????????????(Message)
    ?????????????????????????????????

8
??????????????????
  • ??????????????????????????????????????????
    ???????????????????????????? ?????????????????????
    ???????????????????????? ??????????????????
    attribute
  • ???????????????????????????????????????????? ???
  • ??????????????????????????????????????????????????
    ?????????????????????

9
?????????????????????????????????
  • ?????????????????????????????
  • ??????????????????????????????????????????????????
    ????? ??????????????????????????
    ??????????????????????????????????????????
  • ???????????????????????????????
    ????????????????????????????????????
    ??????????????????????????????????????????????????
    ???????

10
????????????????????????????
siemens
MobilePhone
String bandname Button button Screen
screen Antenna antenna Simm simNet
ericsson
call() receive() hangup() sendSMS()
nokia
11
??????????????????????????????????????????
  • ??????????????????????????????????????????????????
    ? ????????????????????????????????????????????????
    ??????????????????????????????????????????????????
    ??????????? ? ?????????????????????
    ????????????????????????????????? ?
    ?????????????? ???? ??????? shape
    ???????????????????????????????????????? Circle,
    Triangle, Rectangle ??????? ??????????????????????
    ? Circle ???????????????????????????? Triangle
    ??? Rectangle

12
??????????????????????????????????????????????
  • ?????????????????
  • ????????????
  • ???????????????????
  • ?????????? ????????????????????

13
?????????????????(Information Hiding)
  • ???????????????????????????????????????????
    ??????????????????????????????????????????????????
    ????????? ??? ????

???????????????????????? ??? ?????????????????????
? ?????????????????? ??? ?????????????????????????
????????????????????? ??????????????????????????
14
????????????(Interface)
  • ??????????????????????????????????????????????
    ???????? user interface

?????????????????????????????????
??????????????????????????????????????????????????
????
15
???????????????????(Reusable)
  • ??????????????????????????????????????????????????
    ?????????? ???????????????????????????????????????
    ????????????????????? reuse ????????????????????
    ?????? ???????????????????? ??????????????????????
    ????????????? ????????????????????????????????????
    ???? ????????????????????????????????????
    ??????????? ?????? ????? ?????? ???????

16
???????????????????????????????????
17
?????????? (Polymorphism)
  • ?????????????????????????????????????????
  • ??????????????????????????????????????????????????
    ?????????????????????????????????????
  • ????????????????????????????????

?????????? Shape ?????????? Circle, Triangle,
Rectangle ????????????????? ????????????????
18
?????????????????????????????????
19
???????????????????????
  • ????????????????????????????? ????????????????????
    ?????????????????????????????????????????
  • ????????????????????????????????????????????????
    ????????????? ???????????????????????????

???????????????????? ??????????????,
??? ??????????????????
?????A???????????????? ????? 2 ???
3 ??????????????????
20
???????????????????????
21
????????????????????
  • ???? 1967 ???? Simula67 ???????????????????
    ?????????????????????????????????????
    (simulation)
  • ??????????????????????????????????????????????????
    ??????????????????? ??????????????????????????????
    ????????????????????????????????????????????
    ????????????????????? ???????????????????
  • 1990s ????????????????????????????????????????????
    ?????? ???????????????????????????????????????????
    ?????????????????

22
JAVA
  • ??????????????????? ??? ????????????
    ??????????????????????????????????????????????????
    ?????????????????????????? ???????????????????????
    ?????????????(C) ???????????????????????????????
    ?????? ????????????????????????????????????
  • ???????????? C ???
  • ??????????????????????????????????????????????????
    ???????????
  • ???????????????????????????????????????
  • ????????????????

23
????????????????????
  • ??????????????? ????????????????????
  • ?????????????????
  • ????????????????????? ??????????????????????????
  • ????????????????????????
  • ??????????????????????????????????
    ?????????????????

24
?????????????????
  • ??????????????????????????????????????????????????
    ???? ?????????????????????????????????????????????
    ??????????????????????????????????????????????????
    ??
  • ??????????????????????????????????????????????????
    ???? java virtual machine (JVM)
    ????????????????????????????????

25
????????????????????????
  • ??????????????????????????????????????????????

Java program
Java program
Java program
Java virtual machine
Windows
Unix
Macintosh
26
?????????????????????????????
java compiler
Java program
Java virtual machine program
java interpreter
27
???????????????
  • ?????????????????????????????????

http//java.sun.com/j2se
Java virtual machine JRE (Java Runtime
Environment) Java Developer Kit JDK

28
?????????????????????????????????
  • ?????????????????????????????????????

29
?????????????????????????????????
30
?????????????????????????????????
31
???????????????????????????????????????
  • ??????????????? My computer
  • ????? properties ??????????????
  • ?????????????????????????
  • ???? Environment variable

32
????????????(???)
  • ????? path ??? System variable
  • ???? Edit
  • ??????????????????????????

C\j2sdk1.4.1_02\bin.
33
??????????????????????????
A.java
javac A.java
A.class
java A
1. editor
2. compiler
javac filename.java
3. interpreter
java filename
34
?????????????????????????????????????
  • ?????????????????????? EditPlus
  • ??????????????????????????????????????????????????
    ???????????????? ???????????????????????????
  • ????????????? config ?????????????????????????????
    ?????????????????????????????????????????

35
????? config ?? EditPlus ???????????
  • ?????????? config ??????????????? EditPlus
    ?????????????????????????????????????

36
????? config ?? EditPlus ???????????
???? add tool/Program ????????????????????????????
??????????
??? set interpreter
???? set compiler
37
??????????????? EditPlus
  • ??????????? EditPlus ??????
  • ???????? File/New ????? java
  • ???????????????????????????????????? Welcome1.java

/ A first program in Java./ public class
Welcome1 / main method begins
execution of Java application / public static
void main ( String args )
System.out.println(Welcome to Java
Programming!) // end method main // end
class Welcome1
38
?????????????????????????
Write a Comment
User Comments (0)
About PowerShow.com