Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Grammatical Errors #150

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions Examples/basic_class.py
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
# Example of Object Oriented Programming (OOP) classes and objects.

# First we need to declare the class that will server us as a "template".
# First we need to declare the class that will serve us as a "template".
class Plane:
def __init__(self, model, seats):
# The init function is the function executed when we first create (instanciate)
# the class in the main programm. When we instanciate a class we have an object.
# the class in the main program. When we instanciate a class we have an object.
# In this init we declare the variables that we are going to use for the class.
self.plane_model = model
self.number_seats = seats

# This two functions will return us the value of the object when we call them on the
# These two functions will return the value of the object when we call them on the
# main program.
def model(self):
return self.model
Expand Down