Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
fx-biocoder authored May 25, 2023
1 parent 0684ace commit 1bc0e48
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions 03 - Inheritance/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ When establishing a class hierarchy, there are situations where we need to defin

By understanding these three types of member functions, you can determine which functions can be overridden and choose the appropriate approach based on your requirements.

## 5. Resolving virtual functions with dynamic linking in the context of class inheritance
## 5. Resolving virtual functions with dynamic binding in the context of class inheritance

So, now that we have established what virtual functions are, how do we implement them in real code? Let's consider an abstract class called Polygon, from which we derive subclasses representing specific types of polygons - triangles, squares, pentagons, and so on. Let's see how we can translate this into actual code:

Expand Down Expand Up @@ -212,7 +212,7 @@ Now, let me explain in detail. I have created two pointers of type `Polygon` tha

## 6. Constructors and destructors in class inheritance

We have seen how to handle virtual functions with dynamic linking, but we are still unsure about the order in which constructors and destructors are called during runtime. Let's execute the following program:
We have seen how to handle virtual functions with dynamic binding, but we are still unsure about the order in which constructors and destructors are called during runtime. Let's execute the following program:

```cpp
int main()
Expand Down

0 comments on commit 1bc0e48

Please sign in to comment.