course
JS: Dive into Classes
5 students
Course updated
25 July 2023
Included in the course
8 lessons (video or text)
7 exercises in the IDE
21 quizzes
Assistance in Discussions on the website
Access to other courses of the our platform
What you'll learn
- Choose wisely between inheritance and composition
- Follow the Liskov substitution principle when constructing class hierarchies
- Implement "template method" pattern
- Learn exception hierarchies
Description
Inheritance is one of the most complex concepts in object-oriented programming. These are not only new syntactic constructions but also different ways to structure the code. Speaking of inheritance, you need to understand its applicability and limitations. Be able to use it appropriately and find other ways when it creates more complexity in the code. All of this is covered in the course. Additionally, the Liskov substitution principle, the "template method" pattern and much more are analyzed..
Course program
Estimated time: 10 hours
-
3
Late binding
Explore how parts of different classes within an object are related to each other -
6
Liskov substitution principle
Learn a formal way to check the correctness of a hierarchy -
8
Composition instead of inheritance
Understand the limitations of inheritance and find alternative ways to work -
9
Additional resources
Some materials the Hexlet team have picked up. This will give you a more in-depth understanding of the topic