Skip to content

Commit

Permalink
Update chapter28.rst
Browse files Browse the repository at this point in the history
  • Loading branch information
nickcafferry committed Jan 9, 2022
1 parent 1c4013f commit 103d787
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions source/chapter28.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,12 @@ Chapter 28: Class Coding Details

As in C++. the class statement is Python's main OOP tool, but unlike in C++, Python's class is not a declaration. Like a def, a class statement is an object builder, and an implicit assignemnt-when run, it generates a class object and stores a reference to it in the name used in the header. when ru, your class exist.

.. code:: python
>>> classs <name> (superclass, ...):
data = value
def method(self,...):
self.member = value
.. raw:: html
:file: Chapter28.html

0 comments on commit 103d787

Please sign in to comment.