• Post Reply Bookmark Topic Watch Topic
  • New Topic

Naughty Objects

 
Keith Jones
Ranch Hand
Posts: 105
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hey All,

Just wondered if anyone here agrees that it is very naughty to have an object x of type X that has an instance of another object y of type Y inside it where that same Y y has the same X x inside itself too?
 
Sam Codean
Ranch Hand
Posts: 194
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I do not think that it is an issue. That is a classic way of adding actionListeners
 
Barry Gaunt
Ranch Hand
Posts: 7729
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Keith, please post such questions in one of our Java In General (Beginner, Intermediate, Advanced) forums in future. This forum is specifically for SCJD issues.
Thanks
 
Keith Jones
Ranch Hand
Posts: 105
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sorry Barry. Are you a moderator by the way?
 
Gravity is a harsh mistress. But this tiny ad is pretty easy to deal with:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!