Guava is a script that implements OOP.
Guava allows you to write classes that inherit behaviour and attributes from any number of classes. This is facilitated by a few changes to the typical OOP paradigm:
@Class
identifier on functions is only necessary in the case of a name collision.ClassA
and ClassB
that each inherit from ClassC
, you must implement every function in ClassC
yourself (UNLESS neither ClassA
nor ClassB
override its implementation).
super@ClassA
, super@ClassB
, or super@ClassC
. This is only possible inside the class; those calling the function outside of the class are only able to call the topmost implementation (even when abstracted to one of its parent classes).