This site requires JavaScript, please enable it in your browser!
Greenfoot back

Report as inappropriate.

danpost
danpost presents ...

2013/12/9

Use of 'this' demo

The Portal class contain the most useful demonstration of using the 'this' keyword. Look closely as to how the constructor and the 'setPortal' method within that class work together.

It also demonstrate another way to create linked portals within the same and within different worlds.

1816 views / 7 in the last 7 days

3 votes | 0 in the last 7 days

Tags: demo with-source danpost portal this keyword

This scenario is a member of: Demos by danpost


open in greenfoot
Your browser does not support the canvas tag.
A new version of this scenario was uploaded on Mon Dec 09 00:24:33 UTC 2013 This is a demonstration of the uses of 'this' within your code.
A new version of this scenario was uploaded on Mon Dec 09 01:56:52 UTC 2013 This is a demonstration of the uses of 'this' within your code. Added some documentation.

Want to leave a comment? You must first log in.

Who likes this?

kimber_jo Super_Hippo JetLennit