From 07cc8f6600de0903c2dd9f509650df3d3dce06b9 Mon Sep 17 00:00:00 2001 From: pyloor Date: Sun, 15 Mar 2015 02:35:51 +0100 Subject: [PATCH] Update oop.md --- content/oop.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/oop.md b/content/oop.md index 4befd90..2e3870c 100644 --- a/content/oop.md +++ b/content/oop.md @@ -4,7 +4,7 @@ title: Object Oriented Programming # Object Oriented Programming -Object oriented programming is supported through inheritance and methods, which are virtual procedures. Methods work in the same was as [procs](/procs/), including UFCS, but the runtime type of the object that a method is called with is used to determine which version to call. +Object oriented programming is supported through inheritance and methods, which are virtual procedures. Methods work in the same way as [procs](/procs/), including UFCS, but the runtime type of the object that a method is called with is used to determine which version to call. Inheritance is created with the `of` keyword in the type declaration of an object. A method is overridden by creating a new method with parameter types of the subtype.