DOC PREVIEW
UW CSE 444 - Modeling Subclasses

This preview shows page 1-2 out of 6 pages.

Save
View full document
View full document
Premium Document
Do you want full access? Go Premium and unlock all 6 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 6 pages.
Access to all documents
Download any document
Ad free experience
Premium Document
Do you want full access? Go Premium and unlock all 6 pages.
Access to all documents
Download any document
Ad free experience

Unformatted text preview:

Modeling SubclassesSubclasses in ODLMultiple InheritanceHow do we resolve conflicts?Slide 6Modeling SubclassesThe world is not flat!Some objects in a class may have properties not shared by other members: ProductsSoftware productsEducational productsSo --- we define subclasses (in ODL and in E/R).Subclasses in ODLInterface SoftwareProduct: Product{ attribute Set<string> platform; attribute Set<integer> requiredMemory;}Interface EducationalProduct: Product{ attribute Struct Interval {integer begin, integer end} ageGroup; attribute string topic}The two classes also inherit all the properties of Product.Multiple Inheritance ProductEducational ProductEduc-softwareProductSoftware ProductageGrouptopicPlatformsrequired memoryEducational-methodHow do we resolve conflicts? ProductEducational ProductEduc-softwareProductSoftware ProductageGrouptopicPlatformsrequired memoryEducational-methodRating(ATA)Rating(ASA)Rating?Productname categorypriceisa isaEducational ProductSoftware ProductAge GroupplatformsSubclasses in E/R DiagramsProductname categorypriceisa isaEducational ProductSoftware ProductAge GroupplatformsIn ODL: Every object belongs to a single classIn E/R: An entity may be spread out in multiple


View Full Document

UW CSE 444 - Modeling Subclasses

Documents in this Course
XML

XML

48 pages

SQL

SQL

25 pages

SQL

SQL

42 pages

Recovery

Recovery

30 pages

SQL

SQL

36 pages

Indexes

Indexes

35 pages

Security

Security

36 pages

Wrap-up

Wrap-up

6 pages

SQL

SQL

37 pages

More SQL

More SQL

48 pages

SQL

SQL

35 pages

XML

XML

46 pages

Triggers

Triggers

26 pages

Load more
Download Modeling Subclasses
Our administrator received your request to download this document. We will send you the file to your email shortly.
Loading Unlocking...
Login

Join to view Modeling Subclasses 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 Modeling Subclasses 2 2 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?