Skip to main content
Top

2016 | OriginalPaper | Chapter

10. Classes and Objects

Author : T. R. Padmanabhan

Published in: Programming with Python

Publisher: Springer Singapore

Activate our intelligent search to find suitable subject content or patents.

search-config
loading …

Abstract

Object as a concept is omnipresent in Python. Assignments remain pointers to the ID of the objects as long as the object is not modified. Clarity brought out through examples as done here goes a long way in grasping Python’s data structures. Class, its initialization, and its functions as attributes are all explained through examples. Overloading transforms many of the built-in functions and operations into generic ones. Its added dimension is brought out through examples. Instantiations in multiply linked class definitions are explained. Super as a construct provides a structured and logical basis for instantiation with multiple inheritance set ups. Examples considered here enhance understanding of the nuances. Direct command line execution of Python script with its associated flexibility is also dealt with here.

Dont have a licence yet? Then find out more about our products and how to get one now:

Springer Professional "Wirtschaft+Technik"

Online-Abonnement

Mit Springer Professional "Wirtschaft+Technik" erhalten Sie Zugriff auf:

  • über 102.000 Bücher
  • über 537 Zeitschriften

aus folgenden Fachgebieten:

  • Automobil + Motoren
  • Bauwesen + Immobilien
  • Business IT + Informatik
  • Elektrotechnik + Elektronik
  • Energie + Nachhaltigkeit
  • Finance + Banking
  • Management + Führung
  • Marketing + Vertrieb
  • Maschinenbau + Werkstoffe
  • Versicherung + Risiko

Jetzt Wissensvorsprung sichern!

Springer Professional "Technik"

Online-Abonnement

Mit Springer Professional "Technik" erhalten Sie Zugriff auf:

  • über 67.000 Bücher
  • über 390 Zeitschriften

aus folgenden Fachgebieten:

  • Automobil + Motoren
  • Bauwesen + Immobilien
  • Business IT + Informatik
  • Elektrotechnik + Elektronik
  • Energie + Nachhaltigkeit
  • Maschinenbau + Werkstoffe




 

Jetzt Wissensvorsprung sichern!

Springer Professional "Wirtschaft"

Online-Abonnement

Mit Springer Professional "Wirtschaft" erhalten Sie Zugriff auf:

  • über 67.000 Bücher
  • über 340 Zeitschriften

aus folgenden Fachgebieten:

  • Bauwesen + Immobilien
  • Business IT + Informatik
  • Finance + Banking
  • Management + Führung
  • Marketing + Vertrieb
  • Versicherung + Risiko




Jetzt Wissensvorsprung sichern!

Literature
go back to reference van Rossum G, Drake FL Jr (2014) The Python library reference. Python Software Foundation van Rossum G, Drake FL Jr (2014) The Python library reference. Python Software Foundation
Metadata
Title
Classes and Objects
Author
T. R. Padmanabhan
Copyright Year
2016
Publisher
Springer Singapore
DOI
https://doi.org/10.1007/978-981-10-3277-6_10

Premium Partner