From e129eaa1703dcde0739114d1562f2fbbe809f8cb Mon Sep 17 00:00:00 2001 From: Michael McLeod Date: Wed, 26 Nov 2025 19:03:35 +0000 Subject: [PATCH] [ToC] doesn't work :( --- 04cpp3/sec01Inheritance.md | 2 -- 1 file changed, 2 deletions(-) diff --git a/04cpp3/sec01Inheritance.md b/04cpp3/sec01Inheritance.md index f6d0bce1c..1c247ec90 100644 --- a/04cpp3/sec01Inheritance.md +++ b/04cpp3/sec01Inheritance.md @@ -2,8 +2,6 @@ title: Inheritance --- -[ToC] - # Creating Sub-types with Inheritance Inheritance is one of the most important concepts in object oriented design, which brings a great deal of flexibility to us as programmers. A class defines a type of object, and a class which inherits from it defines a sub-type of that type. For example, we might have a class which represents shapes, and sub-classes which represent squares, circles, and triangles. Each of these are shapes, and so should be able to be used in any context that simply requires a shape, but each will have slightly different data needed to define it and different implementations of functions to calculate its perimeter or area.