WUSTL CSE 131 - sp14_8 (22 pages)

Previewing pages 1, 2, 21, 22 of 22 page document View the full content.
View Full Document

sp14_8



Previewing pages 1, 2, 21, 22 of actual document.

View the full content.
View Full Document
View Full Document

sp14_8

126 views


Pages:
22
School:
Washington University in St. Louis
Course:
Cse 131 - Computer Science I
Computer Science I Documents

Unformatted text preview:

3 3 Designing Data Types Introduction to Programming in Java An Interdisciplinary Approach Robert Sedgewick and Kevin Wayne Copyright 2002 2010 1 14 19 06 11 57 AM Object Oriented Programming Procedural programming verb oriented Tell the computer to do this Tell the computer to do that OOP philosophy Software is a simulation of the real world We know approximately how the real world works Design software to model the real world Objected oriented programming OOP noun oriented Programming paradigm based on data types Identify objects that are part of the problem domain or solution Identity objects are distinguished from other objects references State objects know things instance variables Behavior objects do things methods 2 Object Oriented Programming 3 Alan Kay Alan Kay Xerox PARC 1970s Invented Smalltalk programming language Conceived Dynabook portable computer Ideas led to laptop modern GUI OOP The computer revolution hasn t started yet The best way to predict the future is to invent it If you don t fail at least 90 per cent of the time you re not aiming high enough Alan Kay 2003 Turing Award Alan Kay 4 Encapsulation Bond What s your escape route Saunders Sorry old man Section 26 paragraph 5 that information is on a need to know basis only I m sure you ll understand 5 Intuition Client API volume change channel adjust picture decode NTSC signal client needs to know how to use API Implementation cathode ray tube electron gun Sony Wega 36XBR250 241 pounds implementation needs to know what API to implement Implementation and client need to agree on API ahead of time 6 Encapsulation Data type Set of values and operations on those values Ex int String Complex Vector Document GuitarString Encapsulated data type Hide internal representation of data type Separate implementation from design specification Class provides data representation and code for operations Client uses data type as black box API specifies contract between client and class 7 Intuition Client API volume



View Full Document

Access the best Study Guides, Lecture Notes and Practice Exams

Loading Unlocking...
Login

Join to view sp14_8 and access 3M+ class-specific study document.

or
We will never post anything without your permission.
Don't have an account?
Sign Up

Join to view sp14_8 and access 3M+ class-specific study document.

or

By creating an account you agree to our Privacy Policy and Terms Of Use

Already a member?