Human-Computer Interaction in eCommerce - PowerPoint PPT Presentation

About This Presentation
Title:

Human-Computer Interaction in eCommerce

Description:

Title: Human-Computer Interaction in eCommerce Author: Brad Myers Last modified by: ssrman Created Date: 6/15/2001 8:03:27 PM Document presentation format – PowerPoint PPT presentation

Number of Views:130
Avg rating:3.0/5.0
Slides: 25
Provided by: BradM164
Category:

less

Transcript and Presenter's Notes

Title: Human-Computer Interaction in eCommerce


1
Lecture 7.? ?
2
? 7 ? ? ?
  • 7-1. ??? ??
  • 7-2. ?? ??? ??
  • 7-3. ??? super
  • 7-4. ???? ??? ?????(overriding)
  • 7-5. ??? ???
  • 7-6. ??? ???
  • 7-7. ?????? ?? ???
  • 7-8. ??? final

3
7-1. ??? ??
  • OPP? ?? ??? ??? ???? ??? ??? ??
  • ??? ??? ???? ???? ???? ??
  • JDK ???? ?????? ???? ?????? ??
  • ????? ?? ???? ?????? ???.
  • ??????? ??? ???? java.lang.object
  • ?? ???? ???? ?? extends ?????

4
7-1. ??? ??
  • ??? ??? ??? ?? ??

public/final/abstract class ????? extends
??????? .......... // ?????? ..........
// ??? .......... // ?????
5
7-2. ????? ??
  • ???? ??? ?

class A int aa 1 class B extends A
int bb 2 class C extends B int cc
3 class Dabc public static void
main(String args) C objc new C()
System.out.println("objc??? ?????? aa? ?? "
objc.aa) System.out.println("objc??? ??????
bb? ?? " objc.bb) System.out.println("objc
??? ?????? cc? ?? " objc.cc)
?? ?? objc??? ?????? aa? ?? 1 objc??? ?????? bb?
?? 2 objc??? ?????? cc? ?? 3
6
7-2. ?? ??? ??
  • ??(Inheritence1.java)

7
7-2. ?? ??? ??
  • ??(Interitence2.java)

8
7-2. ?? ??? ??
  • ??(Interitence3.java)

9
7-3. ??? super
  • Super? ??
  • ?? ???? ?? ??? ?? ???? ????? ???? ????
  • ?? ???? ???? ??? ?

Super ?? ?? Super.??? ??(????)
Super(????)
10
7-3. ??? super
  • ??(InheritenceSuper.java)

11
7-4. ??????? ?????
  • ????(overloading)
  • ?? ??? ?? ?? ??? ???? ???? ???? ??
  • ????? ??? ??? ??? ??.
  • ?????(overriding)
  • ????? ?? ??? ?? ?? ??? ???? ???? ??
  • ?????? ??? ?? ??? ?? ?? ?? ??? ???? ??? ? ??.
  • ????? ??? ??? ??? ??.

????? ?????? ???? ??? ?????
???(polymorphism?
????.
12
7-4. ??????? ?????
  • ??(Inheritence4.java)

13
7-4. ??????? ?????
  • ??(OverrideExam2.java)

14
7-4. ??????? ?????
  • ??(OverrideExam3.java)

15
7-5. ??? ???
  • ??? ?????? ??? ???? ????? ???? ?? ???? ????? ??
    ??
  • ?? ??? ???? ???(????? ??)? ??
  • ???? ???? ?? ?? ???? ?? (????? ??)??? ???
    ???(super)? ???? ????? ??
  • Super??? ??? ??? ??? ?? ??.

16
7-5. ???? ???
  • ??(Constructors1.java)

17
7-5. ???? ???
  • ??(Constructors2.java)

18
7-6. ??? ???
  • ????? ????? ??? ??? ??

class Acast int a1 class Bcast extends
Acast int b2 class Ccast extends Bcast
int c3 class TestCasting public
static void main(String args) Acast refA
// Acast ??? ?? refA ?? refA new
Ccast() / Acast ??? ?? ?? ?? refA? Ccast
???? ??? ???? ?? /
System.out.println("refA.a? ?? "refA.a)
???? refA.a? ?? 1
19
7-6. ??? ???
  • ?? ????? ??? ?? ??

class TestCasting public static
void main(String args) Acast refA
refA new Ccast()
System.out.println("refA.a? ?? " refA.c )
// Ccast ???? ??? c? ?? ??. ?? ??


TestCasting.java13 No variable c defined in
class Acast. System.out.println("refA.a? ??
"refA.c)
1 error
20
7-6. ??? ???
  • ?? ????? ??? ??? ?? ??

class TestCasting public static void
main(String args) Ccast refC
new Acast() // ?? ??
System.out.println("refC.a? ?? "refC.a)

TestCasting.java12 Incompatible type for
declaration. Explicit cast needed to convert
Acast to Ccast. Ccast refC new Acast()
1 error
21
7-6. ??? ???
  • ??(OverrideingCast.java)

22
7-7. ?????? ?????
  • ?????
  • ?? ????? ??? ???? ???? ?????? ??
  • ?????? ??? ??(What)???? ???? ????? ?? ?????.
  • ?????? ??????? ??????? ????
  • ?????? ??????? ???? ??? ???? ??? ??.

abstract class ????? ..// ?? ??? ??? ??
abstract void ???????() // ?? ??? ?? ..
23
7-7. ?????? ?????
  • ??(AbstractClass.java)

24
7-8. ??? final
  • Final? 3?? ??? ??
  • ??? ??? ?? ?? ??
  • ???? final? ??? ??????? ?????? ? ??.
  • ????? final? ?? ?????? ??? ??? ??.
  • Final? ?? ??
  • ??? ?? ??? ???? ?? ??
Write a Comment
User Comments (0)
About PowerShow.com