Skip to content

Latest commit

 

History

History
8 lines (8 loc) · 415 Bytes

File metadata and controls

8 lines (8 loc) · 415 Bytes

MTRN2500-T3-2019-Week-10-Lectures

virtual2.cpp

  • Shows examples of
    • pure virtual methods
    • implementing pure virtual methods in the base class (not inline)
    • illustrating VTABLE usage (see the Lecture 19 slides)

interfaces.cpp

  • An example of an interface for the shapes class, checking inputs before calling private pure virtual methods defined in the derived shape, square and circle classes