CS 4448 - Fall 1998
Object-Oriented Programming and Design
Talk 11.2
by
Wei Tao

What is Object-Oriented Software
by
Terry Montlick

Http://www.soft-design.com/softinfo/objects.html

 

* The Heart of the Matter – The "Black Box"

    1. Contains code and data, merge into a single indivisible thing – an object.
    2. User doesn’t need open the box for look at the code.

* Classes

Example like Dog is a class, and spot is the object from that class, you also can make as

more objects as you want.

* Some Real Life Examples

a = 1;

b = 2;

c = a + b;

    1. In C, there is expressed for how that each code means.
    2. In Smalltalk, there is the other one expressed for how that each code means.

a = "John Jones";

b = "Suzy Smith";

    1. In C, that does not work because it does not know what to do with a and b.
    2. In Smalltalk, it works because the list class was created with a method which

specifically "knows" how to handle the message.

* Using Non-Object-Oriented Language

(return (arg1 + arg2); )

Sent the above code to the server computer to be performed.

* Inheritance

* Object-Oriented Languages

    1. C++
    1. Smalltalk
    1. VisualWorks from parcplace-Digitalk, Inc.
    1. Smalltalk/V and Visual Smalltalk from ParcPlace-Digitalk Inc.

3. VisualAge from IBM

3. Java

 

* Summary


Copyright © University of Colorado. All rights reserved.
Revised: Novemeber 10, 1998