Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Bean implements Serializable and inner inheritance  RSS feed

 
Dane Frazier
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Should inner classes also implement serializable interface if the container class implements it, or do inner classes automatically inherit the implemented interface?
It seems that the compiler does not complain either way, so must be matter of convention??
I suppose this transcends the other "implements" and "Extends" methods as well?
It seems self-evident however that an inner class could extend another class, no problem.
-dane
I.e.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!