Presentation is loading. Please wait.

Presentation is loading. Please wait.

Aalborg Media Lab 19-Jun-15 Exercises/Summary Lecture 12 Summary, Exercises.

Similar presentations


Presentation on theme: "Aalborg Media Lab 19-Jun-15 Exercises/Summary Lecture 12 Summary, Exercises."— Presentation transcript:

1 Aalborg Media Lab 19-Jun-15 Exercises/Summary Lecture 12 Summary, Exercises

2 Aalborg Media Lab 19-Jun-15 Summary of Inheritance SD10 has focused on: –Deriving a new class from a existing one –Purpose of reusing code –Inheritance -> “is a” relationship –Concept of parent & child –Abstract classes –Object class –A child class can override (re-define) parent functions –Timer class

3 Aalborg Media Lab 19-Jun-153 Inheritance Inheritance allows a software developer to derive a new class from an existing one The existing class is called the parent class, or superclass, or base class The derived class is called the child class or subclass. As the name implies, the child inherits characteristics of the parent. (data & methods)

4 Aalborg Media Lab 19-Jun-154 Class Hierarchies A child class of one parent can be the parent of another child, forming a class hierarchy Business KMartMacys ServiceBusiness Kinkos RetailBusiness

5 Aalborg Media Lab 19-Jun-15 Exercises & PP from SD10 Exercises –8.1, 8.2, 8.3 Programming Projects –8.2, 8.6, 8.7

6 Aalborg Media Lab 19-Jun-15 Programming Project 8.2 Employee DoctorNurse Admin./ Other Employee Medical Employee SurgeonJanitorReceptionist

7 Aalborg Media Lab 19-Jun-15

8 Aalborg Media Lab 19-Jun-15 Exercises so far LectureExercises SD2 – 06.092.3, 2.5, 2.9, 2.11, 2.13, (2.15) SD3 – 13.093.1 – 3.5 SD4 – 13.094.1, 4.8, 4.10 SD5 – 20.095.1, 5.2, 5.13 SD6 – 20.096.14 SD8 – 27.097.2, 7.3, 7.6, 7.12 SD10 – 03.108.2, 8.6, 8.7


Download ppt "Aalborg Media Lab 19-Jun-15 Exercises/Summary Lecture 12 Summary, Exercises."

Similar presentations


Ads by Google