Python Language OOP

From NovaOrdis Knowledge Base
Revision as of 20:28, 15 March 2022 by Ovidiu (talk | contribs) (→‎Class)
Jump to navigation Jump to search

External

Internal

Overview

Attributes and methods.

Class

class MyClass:
  def __init__(self):
    pass

The class may be declared with parentheses, but the IDE static checks find those as "redundant":

class MyClass():
  ...

Initialization

Inheritance

Overriding

Polymorphism

.