User Tools

Site Tools


tutorial:mixin_tips

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Next revisionBoth sides next revision
tutorial:mixin_tips [2022/08/17 22:20] – Stylized "this" clomclemtutorial:mixin_tips [2022/08/17 22:22] – Added page description clomclem
Line 3: Line 3:
 ====== Mixin Tips (WIP) ====== ====== Mixin Tips (WIP) ======
  
 +This is a collection of different tips some might find useful. It's recommended to read the previous articles to understand the tips.
  
 ==== Why make a class abstract? ==== ==== Why make a class abstract? ====
Line 80: Line 81:
 </code> </code>
  
-The only caveat is that if you want to mixin into the inner class constructor, the first parameter must be of the type of the outer class (this is implicitly added by the compiler to allow the inner class to access private methods of the outer class):+The only caveat is that if you want to mixin into the inner class constructor, the first parameter must be of the type of the outer class (this is implicitly added by the compiler to allow the inner class to access instance methods of the outer class):
  
 <code java> <code java>
tutorial/mixin_tips.txt · Last modified: 2023/12/18 02:06 by solidblock