This preview shows pages 1–3. Sign up to view the full content.
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 theyre 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 theyre 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
- Fall '10