CHAPTER 11

CLASSES II

CHAPER OUTLINE

11.1 Polymorphism

11.2 Encapsulation, Data Hiding, and Data Abstraction

11.3 Modifier and Accessor Methods

11.4 Static Method

11.5 Adding Methods Dynamically

11.6 Composition

11.7 Inheritance

11.8 Built-in Functions for Classes

We have already studied user-defined data types in the form of classes. The classes lie at the heart of a programming methodology called object-oriented paradigm or Object-oriented Programming (OOP). It includes several concepts like polymorphism, encapsulation, data hiding, data abstraction, and inheritance. In this chapter, we shall study these concepts.

 

object-oriented programming

11.1 POLYMORPHISM

Object-oriented programming revolves around the notion of objects. A method/operator ...

Get Python Programming: A modular approach now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.