Recitation1 - CS180 Recitation 1 Lecture Recap I Class I Defines a blueprint for creating ’many’ of a ’kind’ I Allows to store properties

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

View Full Document Right Arrow Icon

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

View Full DocumentRight Arrow Icon

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

View Full DocumentRight Arrow Icon
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: CS180 Recitation 1 . Lecture Recap I Class I Defines a blueprint for creating ’many’ of a ’kind’. I Allows to store properties common to everyone in a ’class’. I eg: ’Courses offered at Purdue’ I What are the properties common to all Courses? I Object I An instance of the Class I ’CS180 Spring 2012’ is one instance of ’Courses Offered At Purdue’ I For CS180, what are the values for the properties you identified above. I Recap contd.. I Properties common to all Courses Used when defining a class I Number of students (What should the ’type’ of this property) I Class Room I Class Timing I Instructor I One instance - ’CS180 Spring 2012’ (Name another ’instance’ of this class) I Values for properties defined above I Number of students: 180 I Class Room: RHPH 172 I Class Timing: 12:30 pm - 1:20 pm - T, R I Another object of this class will have the same properties, but different values for those properties. (MA101, 50, MATH 406, M,W,F 1-1.50) Recap contd I Object Oriented Programming I Programs are modeled as Objects and interactions between them....
View Full Document

This note was uploaded on 02/19/2012 for the course CS 180 taught by Professor Staff during the Spring '08 term at Purdue University-West Lafayette.

Page1 / 15

Recitation1 - CS180 Recitation 1 Lecture Recap I Class I Defines a blueprint for creating ’many’ of a ’kind’ I Allows to store properties

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

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