start classes

This commit is contained in:
Timo Hocker 2020-04-03 10:47:05 +02:00
parent 551e8835d7
commit 8143d66e49
2 changed files with 15 additions and 1 deletions

View File

@ -12,10 +12,10 @@ Example Languages:
Lessons:
- [instanciating objects, accessing attributes and methods](./lessons/Instances.md)
- [creating a class](./lessons/Classes.md)
Work in progress:
- creating a class
- use attributes or functions from a function within an object
- constructors
- encapsulation

14
lessons/Classes.md Normal file
View File

@ -0,0 +1,14 @@
# Creating Classes
This lesson is going to use the same code from last time to explain
the class structure itself.
Since the example languages can have quite different styles of
class declaration, I will just give a basic explanation here and then
discuss every language in detail in their own description file.
Classes are blueprints for the objects you create. You define how the
object will look like and more importantly for the computer how much
space it will use in memory.