This week's book giveaway is in the Kotlin forum.
We're giving away four copies of Kotlin in Action and have Dmitry Jemerov & Svetlana Isakova on-line!
See this thread for details.
Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

anonymous inner class  RSS feed

 
samdeep aarzoo
Ranch Hand
Posts: 160
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
can anybody explain anonymous inner class flavour1 and flavour 2
as given in k&B page 467
 
Nicky Eng
Ranch Hand
Posts: 378
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
flavour one : creates an anonymous subclass of the specified class type.

flavour two : creates an anonymous implementer of the specified interface type.

as in page 471. hehe.

everything explained in the book is so clear. i wonder why you can't understand. but good luck. i gtg for my "stupid" class.

all the best.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!