This preview has intentionally blurred sections. Sign up to view the full version.View Full Document
Unformatted text preview: Parent (super) and child (sub) classes Student Staff University person Gender First Name First Name Age Last name Last name University ID Courses Street First name University ID City Last name Degrees Age Major Zip Gender Street Office Zip City Street University ID Zip code City Phone number Hire date GPA Age University Person Student staff (have more unique properties) TA TA Public Class Student Inherits University Person---Polymorphism Objects can have different behavior based on how they’re defined Employee Compute pay -Salary hour-compute pay Tip Earner- compute pay Remember: Object is an instance of a class Objects exist as long as they’re in scope Public Sub mySub () Dim time1 As Time= New Time (10, 20) reference variables Dim time2 As Time= New Time (30, 30) Time1= time2-----------------change time1 to time2...
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