- Exercises
Let's solve a few exercises around CRTP in this lesson.
We'll cover the following
Problem Statement 1
Extend the given piece of code with a
Person
class. A Person
should have a
- first name
- last name
You need to create two objects of the Person
class and compare these objects using relational operators.
Get hands-on with 1400+ tech skills courses.