3. What Is Object?
●
東西
●
An instance of an object.
●
An object is a software bundle of related state a
nd behavior.
4. What Is Object?
●
讓我們把世界看成是㆒個由物件( object )所組
成的大環境。物件是什麼?白一點說,「東西」
是也!任何實際的物體你都可以說它是物件。為
了描述物件,我們應該先把物件的屬性描述出
來。好,給「物件的屬性」一個比較學術的名
詞,就是「類別」( class )。
5. What Is Class?
●
A class is a blueprint or prototype from which ob
jects are created.
●
Sample
–
Bicycle
●
Attribute
●
Behavior
46. Basics
●
TCP (Transmission Control Protocol) is a
connection-based protocol that provides a
reliable flow of data between two computers.
●
UDP (User Datagram Protocol) is a protocol
that sends independent packets of data, called
datagrams, from one computer to another with
no guarantees about arrival. UDP is not
connection-based like TCP.
70. Flow
1.Open a socket.
2.Open an input stream and output stream
to the socket.
3.Read from and write to the stream
according to the server's protocol.
4.Close the streams.
5.Close the socket.