Question:
(a) Explain the concepts of Inheritance and Polymorphism in Lingo programming.
(b) Write short descriptions on parent scripts and child objects in Lingo object oriented programming (OOP)? Your answer should include the equivalent terms used in C++ OOP?
(c) During autumn season in Europe, tourists are attracted by the random dropping of brown, yellow or reddish brown of leaves when a light wind blows, indicating the approach of winter season.
You have been asked to use Lingo OOP techniques to create the animation of the falling leaves in autumn season. Given that the original leave is a film loop and is already designed as cast member ‘autaumleaveLoop'. The movie consists of a button (‘Add Leaves').
Each time a user clicks the button, a leave starts falling randomly from top of the stage. The child leaves created are of random colours.
Using parent script and child objects in OOP, write lingo scripts to create this animation.