Week 8 Assignment - Object-Oriented Design

Week 8 Assignment - Object-Oriented Design - IT/210...

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

View Full Document Right Arrow Icon
IT/210 Assignment: Object-Oriented Design         Class MediaCollection Name As String      Type As String      Quantity As Integer Subprogram NewItem(name)      Call SetName(name)      Call SetQuantity(Quantity + 1) End Subprogram Function getName() As String Set getName = Name End Function Function getType() As String Set getType = Type End Function Function getQuantity() As Integer Set getQuantity = Quantity End Function Subprogram setName(name) Set Name = name End Subprogram Subprogram setType(type)
Background image of page 1

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

View Full DocumentRight Arrow Icon
IT/210 Assignment: Object-Oriented Design         Set Type = Type End Subprogram Subprogram setQuantity(Quantity) Set Quantity = Quantity End Subprogram End Class Class CDMedia Length as Real Genre as String Rating as String Subprogram NewCD(length, genre, rating)      Call SetLength(Length)      Call SetGenre(Genre) Call SetRating(Rating) End Subprogram Function getLength() As Real Set getLength = Length End Function Function getGenre() As String
Background image of page 2
Image of page 3
This is the end of the preview. Sign up to access the rest of the document.

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

Page1 / 5

Week 8 Assignment - Object-Oriented Design - IT/210...

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