start classes
This commit is contained in:
parent
551e8835d7
commit
8143d66e49
@ -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
14
lessons/Classes.md
Normal 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.
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user