Lecture overview -- Keyboard shortcut: 'u'  Source programs in previous lecture -- Keyboard shortcut: 'p'  Source programs in next lecture -- Keyboard shortcut: 'n'  Course home

Source Programs
Abstraction Mechanisms, Part 2

The Note Context in the rightmost column is only shown in case an annotated program exists. - You can navigate to the annotated program via the annotated slide view (= 'the note context').

Constructors and single inheritance.single-1.ccSlide context--
Constructors and multiple inheritance.multiple-1.ccSlide context--
Constructors and multiple inheritance - implicit activation of default constructor in Base.multiple-2.ccSlide context--
Constructors and multiple inheritance - order of construction and destruction.multiple-4.ccSlide context--
Constructors and multiple inheritance - order of construction and destruction.multiple-5.ccSlide context--
Illustration of object slicing.slice-1.ccSlide context--
Does this variant change the game?.slice-2.ccSlide context--
Virtual versus non-virtual functions in an AB class hierarchy.virtual-1-simplified.ccSlide context--
Base class A and derived class B with non-virtual destructors - motivation.prog2.ccSlide context--
Base class A and derived class B with virtual destructors.prog3.ccSlide context--
Base class A and derived class B and C with virtual destructors.prog4.ccSlide context--
A class B inherits two virtual, overloaded functions from A - straightforward - no problems.prog0.ccSlide context--
A variant were vf is a pure virtual function in class A.pure-virtual.ccSlide context--
A sample C# interface.gameobject.csSlide context--
The C++ counterpart to the C# Interface.interface-like-class.ccSlide context--
A C++ class that 'implements the interface' and uses the resulting class.interface-like-class-and-use.ccSlide context--
Class Outer that contains class Inner - does not compile.nested-1.cppSlide context--
Class Outer that contains class Inner - friends of each other.nested-2.cppSlide context--
A variant where class Inner is private in Outer - does not compile.nested-2a.cppSlide context--
Inner attempts to access to non-static variable in Outer - does not compile.nested-3.cppSlide context--
Problems solved - This program compiles.nested-3a.cppSlide context--
Class variant of class Point with several different move functions.point.hSlide context--
Implementation of class Point and the tree move methods - not important for the example.point.ccSlide context--
A program that illustrates pointer to Point member functions.prog.ccSlide context--
Ambiguity - the compiler locates the problem.amb-1.ccSlide context--
Ambiguity resolution in the client of C.amb-2.ccSlide context--
Involving polomorphism - but there is a problem.amb-3-problems.ccSlide context--
Involving polomorphism - problem solved.amb-3.ccSlide context--
Illustration of replication of class A.non-virtual-1.ccSlide context--
Attempting repeated inheritance in C++.try-repeated-inheritance.ccSlide context--
Illustration of shared, virtual, base class A.virtual-1.ccSlide context--
Class D inherits privately from B and publically from C.base-class-access-1a.ccSlide context--
Same setup: Which variables can access which objects.base-class-access-2.ccSlide context--

Generated: Tuesday March 26, 2013, 13:03:42