Test 1 - Protocols/Polymorphism
grandparent button:
Code: Select all
on mouseUp
answer test()
end mouseUp
Code: Select all
function test
return "hello world"
function test
Test 2 - Inheritance ... same code but gradparent and parent code reversed... still answers "hello world"
Test 3 - Overriding ... add a second child and implement test function there:
Code: Select all
function test
return "hello awesome feature"
function test
In the choice between sliced bread and this... sliced bread comes second... let's get this out there