Skip to Main Content
Python Programming: A modular approach
book

Python Programming: A modular approach

by Kumar Naveen, Taneja Sheetal
January 2017
Intermediate to advanced content levelIntermediate to advanced
606 pages
14h 1m
English
Pearson Education India
Content preview from Python Programming: A modular approach

CHAPTER 10

CLASSES I

CHAPER OUTLINE

10.1 Classes and Objects

10.2 Person: An Example of Class

10.3 Class as Abstract Data Type

10.4 Date Class

We have already studied basic building blocks of Python language such as variables for naming the data objects, control structures for control flow, and functions for providing a systematic way of problem solving by dividing the given problem into several sub-problems. A program of moderate size would comprise several groups of related information. Keeping track of them in an ad-hoc manner would be a challenging task. Packaging together related code and data in the form of classes would make our job easier. A class is a template that provides a logical grouping of data and methods that operate on them. ...

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.
Start your free trial

You might also like

Modular Programming with Python

Modular Programming with Python

Erik Westra
Python Programming Blueprints

Python Programming Blueprints

Daniel Furtado, Marcus Pennington

Publisher Resources

ISBN: 9789352866038