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 O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.