1. What is the difference between a class and an object?
-A class is a collection of methods and an object is when the method is used, meaning a method with the signiture.
2. What happens to an object’s memory storage when it is no longer referenced by a variable?
-The object will then be delected from the memory storage.
3. List the three important characteristics of an object.
-Behavior, state, and identity.
4. Describe the client-server relationship.
-The client and server are the two sides of message processing, and respectively, they are sender and receiver. They have limited knowledge of the other. In fact, client have little knowledge of how the server works internally. Only the programmer of the class need to know the internal operation. All client need to know are the methods of that class. They interact with each other via interface. A change in one doesn’t affect the other a lot.
5. What is the interface of a class?
-This is the place where client interact with the server. It’s a list of the methods supported by the server.