CHAPTER 4
CUSTOM CLASSES
This chapter introduces you to some built-in functions, how to create custom classes, and object-oriented concepts such as inheritance and polymorphism.
The first part of this chapter discusses functions such as filter(), map(), and reduce(). You will also learn about lambda functions, which are often used in conjunction with these functions. The second part of this chapter shows you how to define custom classes, and how to manage lists of objects that are instances of your custom classes.
The final portion of this chapter contains a light introduction to encapsulation, single and multiple inheritance, and polymorphism. There are many subtle points involving inheritance and object-oriented programming, and after you ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access