This preview shows page 1. Sign up to view the full content.
Unformatted text preview: EG. Java, C++, Visual Basic Focus on objects (nouns) which represent real-world entities Eg. Paychecks, employees, button, label are objects ---Objects have • Properties (attributes) [Name, position for employee, etc.] • Methods (actions) [start, stop, calculate pay, etc.]---Class: an object type Template or blueprint for object. eg. [car, my 2002 status] Why is this good idea? 1. Information hiding (don’t have to know details of implementation) 2. Code re-use (don’t need to write again for existing object like button)---Another VB characteristic • Event-driven • Wait for users input—take some action in response--event handler is a kind of method (action)...
View Full Document
This note was uploaded on 12/01/2011 for the course 6K 226 taught by Professor Staff during the Fall '10 term at University of Iowa.
- Fall '10