After taking AP Computer Science, I became quite fond of Java’s ability to create and maintain hierarchies with relative ease. Is it possible to replicate these structures in Corona?
For example, making an abstract class, calling a super() in a subclass’ constructor. Overriding a subclass’ functions with different parameters, etc?
In Java:
public abstract class example { --some private instance variable public example() { } public void getSomething(); } --subclass of example public class subclass { public subclass() {super();} public void getSomething() { System.out.println("I got something!"); } }
Is this feasible with Lua?