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

Application of object variables?  RSS feed

 
Jon Camilleri
Ranch Hand
Posts: 664
Chrome Eclipse IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What is a practical example of when I need to use an object variable, rather than simply creating an object of that particular class?

For example, I can create an object variable for abstract class Person as follows:

 
Seetharaman Venkatasamy
Ranch Hand
Posts: 5575
Eclipse IDE Java Windows XP
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
this post discussed about exactly what you want.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!