• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

conflict in mock exams

 
Rachel Glenn
Ranch Hand
Posts: 95
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Consider this statement:

"Has-a relationships always rely on instance variables"

One mock exam says this statement is FALSE, because has-a relationships can exist between static class members.
Another mock exam says this statement is TRUE.


My opinion is that this statement is FALSE. What do you think?
 
vishal mishra
Ranch Hand
Posts: 103
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Rachel Glenn wrote:Consider this statement:

"Has-a relationships always rely on instance variables"

One mock exam says this statement is FALSE, because has-a relationships can exist between static class members.
Another mock exam says this statement is TRUE.


My opinion is that this statement is FALSE. What do you think?



Same as you are thinking statement given above is False because 'Has-a' relationship depends on reference variable whether it is static, instance or local....

 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic