Presentation is loading. Please wait.

Presentation is loading. Please wait.

Zen & The Art of Oriented / Objects College of Alameda Copyright © 2006 Patrick McDermott With a tip of the hat to: Herrigel, Eugen,

Similar presentations


Presentation on theme: "Zen & The Art of Oriented / Objects College of Alameda Copyright © 2006 Patrick McDermott With a tip of the hat to: Herrigel, Eugen,"— Presentation transcript:

1 Zen & The Art of Oriented / Objects College of Alameda Copyright © 2006 Patrick McDermott pmcdermott@peralta.edu With a tip of the hat to: Herrigel, Eugen, R.F.C. Hull (translator from German), Zen in the Art of Archery, New York: Vintage Books (0-375-70509-0), 1953, 1989 (Zen in der Kunst des Bogenschiessens, 1948) René Magritte (1898-1967) The Prince of Objects Le Prince des objets 1927

2 Data Processing Process Data Tear down this Wall!!! Name is “Pat” Balance is $110 Payment is $50 Take Pat’s Balance; Subtract the Payment; Make that the Balance;

3 Classes & Objects OBJECT: A discrete entity with a well-defined boundary and identity that encapsulates state and behavior; an instance of a class. Rumbaugh [3 Amigos], Reference, p. 360. CLASS: The descriptor for a set of objects that share the same attributes, operations, methods, relationships and behavior. A class represents a concept within the system being Modeled. Rumbaugh [3 Amigos], Reference, p. 185. Separate the Essence from the Instance.

4 Class A class is a category of Things. An object is one of those things. A instantiation of a class. Encapsulation Inheritance $$ Poly m o r p h i s m Name Address Telephone CreditRating Taxonomy is a taxing task: Is a Grad student an employee? Is Pluto a Planet? Is Bill Gates human?

5 “Class” is perhaps Best defined by Examples… Tangible Intangible Conceptual –Cost Center, Account People Places Things Events Roles Organizations Collections of Objects Interface –Form or Dialog Infrastructure –Date, Money, Address Persistence: Database Control Reference Lists Other Systems Process –Currency Format?

6 They’re Everywhere! There must be a Class if … there’s a form … there’s a file … there’s a number … there are multiple copies … It’s Important NOTE-- –Sections and boxes on Forms –The name might not be obvious Responsibilities Obligation or Contract Personification Helps Know Things –Invoice: Know the Customer Do Things –Invoice: Compute Total Get Organized –Abstraction


Download ppt "Zen & The Art of Oriented / Objects College of Alameda Copyright © 2006 Patrick McDermott With a tip of the hat to: Herrigel, Eugen,"

Similar presentations


Ads by Google