Lecture 4
LECTURE 4:
Abstraction Mechanisms, Part 2
Kurt Nørmark
Department of Computer Science, Aalborg University
Title page
Abstract
References from this lecture
Exercises in this lecture
Source programs in this lecture
Page 1
Inheritance in C++
Page 13
Multiple inheritance - issues and C++ solutions
Page 2
Inheritance: Constructors and destructors
Page 14
Multiple inheritance - issues and C++ solutions
Page 3
Inheritance: Copying and slicing
Page 15
Multiple inheritance: Ambiguities
Page 4
Member access control: private, public and protected
Page 16
Replicated base class
Page 5
Virtual Functions
Page 17
Is repeated inheritance possible?
Page 6
Destructors and Inheritance - Virtual Destructors
Page 18
Is repeated inheritance possible? No!
Page 7
Hiding inherited names
Page 19
Shared base class: Virtual base
Page 8
Abstract Classes
Page 20
Base class access
Page 9
What about interfaces in C++?
Page 21
Base class access
Page 10
What about nested classes in C++?
Page 22
Base class access - the C++ rules
Page 11
What about prevention of derivation in C++
Page 23
Base class access - Examples
Page 12
Pointer to members
Page 24
Discussion: No single most general class in C++
Generated: Tuesday March 26, 2013, 13:03:41