Object - End Set artist = artist End Set album(album End...

Info iconThis preview shows pages 1–3. Sign up to view the full content.

View Full Document Right Arrow Icon
Object-Orientaion Design Class cd’s and dvds Name as string Type as string Cd 1 integar Dvd 2 integer Subprogram New item (name) Set set (name) Set ( CD 1 or DVD 2) End program Get name () as string Set name = name End function Set type as string () Get type = type End function Get 1 as cd or get 2 as dvd Set type as CD or DVD End program Class cd media Artist as real Album as string
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Type as string Subprogram new cd (artist,album, type) Set artist (artist) Set album as (album) Set type as (type) End program Get artist () real End Get album () as string end Get type () as string
Background image of page 2
Background image of page 3
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: End Set artist = artist End Set album (album) End Set type (type) End class Class DVD Title as real Type as string Subprogram new dvd ( title, type) Set title as (title) Set type as (type) End Get title a () as real End get type () as string End Subprogram set title (title) Set title = title End Set type (type) Set type = type end type in this program refers to for cds like rock, rap, pop and so on and for DVD’S refers to horror, drama, sci-fi and so on for your referance to what it refers to....
View Full Document

This note was uploaded on 05/16/2011 for the course IT 210 taught by Professor Josephpillera during the Spring '10 term at University of Phoenix.

Page1 / 3

Object - End Set artist = artist End Set album(album End...

This preview shows document pages 1 - 3. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online