170 likes | 206 Views
An approach to specify software solutions using collaborating objects, attributes, and methods. Learn the structure of classes and their unique features.
E N D
Object-Oriented Design • an approach used to specify the software solution in terms of collaborating objects, their attributes, and their methods.
MyClassName +SomePublicAttribute : SomeType -SomePrivateAttribute : SomeType #SomeProtectedAttribute : SomeType +ClassMethodOne() +ClassMethodTwo() Responsibilities -- can optionally be described here. Parts of a Class • Classes can have four parts • Name • Attributes • Operations • Responsibilities • Classes can show visibility and types. • All parts but the Name are optional.
What’s Unique About Spatial? • Topology rules – e.g., political boundaries • Semantic integrity – e.g., roads do not run through structures • User defined business rules – e.g., one way streets