October 2008
Beginner to intermediate
680 pages
16h 48m
English
When deriving a new class, we can do several things to specialize the base class that we are starting out with:
We can extend the base class by adding members. In our GraduateStudent example, we added four members: two fields—undergraduateDegree and undergraduateInstitution—and two properties—UndergraduateDegree and UndergraduateInstitution.
We can specialize the way that a derived class performs one or more of the methods inherited from its base class. For example, when "general" students enroll for a course, the students may first need to ensure that
They have taken the necessary prerequisite courses.
The course is required for the degree that the student is seeking.
When graduate students enroll for ...
Read now
Unlock full access