From 8143d66e497ec9a593f2ae6327c0fa7be0002db4 Mon Sep 17 00:00:00 2001 From: Timo Hocker Date: Fri, 3 Apr 2020 10:47:05 +0200 Subject: [PATCH] start classes --- README.md | 2 +- lessons/Classes.md | 14 ++++++++++++++ 2 files changed, 15 insertions(+), 1 deletion(-) create mode 100644 lessons/Classes.md diff --git a/README.md b/README.md index 37e9997..4d75bfd 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/lessons/Classes.md b/lessons/Classes.md new file mode 100644 index 0000000..04df149 --- /dev/null +++ b/lessons/Classes.md @@ -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. + +