From 2d09280efce68205780063bbe8ccf203e6f4c1f7 Mon Sep 17 00:00:00 2001 From: Felype Rennan Date: Tue, 31 Mar 2020 18:43:58 -0300 Subject: [PATCH] Fix in the C# code example The keyword `extends` is used in Java to extend/inherit from another class, but in C# the correct syntax is just the colon mark `:` Also rectified one part of the code where the example is extending from Object, although it would not cause any trouble, all classes in C# already derive from `Object` by default. --- .../workflow/best_practices/godot_interfaces.rst | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/getting_started/workflow/best_practices/godot_interfaces.rst b/getting_started/workflow/best_practices/godot_interfaces.rst index d51697569..d4d5e35ea 100644 --- a/getting_started/workflow/best_practices/godot_interfaces.rst +++ b/getting_started/workflow/best_practices/godot_interfaces.rst @@ -70,7 +70,7 @@ access. // Tool script added for the sake of the "const [Export]" example. [Tool] - public MyType : extends Object + public MyType { // Property initializations load during Script instancing, i.e. .new(). // No "preload" loads during scene load exists in C#. @@ -472,7 +472,7 @@ accesses: .. code-tab:: csharp // Child.cs - public class Child extends Node + public class Child : Node { public FuncRef FN = null; @@ -484,7 +484,7 @@ accesses: } // Parent.cs - public class Parent extends Node + public class Parent : Node { public Node Child;