samples/processing_app/basics/objects/inheritance.rb in ruby-processing-2.4.4 vs samples/processing_app/basics/objects/inheritance.rb in ruby-processing-2.5.0

- old
+ new

@@ -2,9 +2,11 @@ # # A class can be defined using another class as a foundation. In object-oriented # programming terminology, one class can inherit fields and methods from another. # An object that inherits from another is called a subclass, and the object it # inherits from is called a superclass. A subclass extends the superclass. +# see also inheritance_two for the use of hash args and inheritance that +# avoids the inherited class call to super def setup size 640, 360 @arm = SpinArm.new width/2, height/2, 0.01