Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

getAttribute() method

 
Remko Strating
Ranch Hand
Posts: 893
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In the final mock exam of HFSJ in question 41 it's stated that all scopes have a getAttribute() method.

I thought that that was wrong, because they've a getAtribute(String) method.

Which is true?
 
Marc Peabody
pie sneak
Sheriff
Posts: 4727
Mac Ruby VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sometimes when a method is described, the parameters are omitted. Often, even the paranths are dropped.

I could say doPost or doPost(). Writing out the parameters makes my text cluttered. Unless a question is specifically asking what parameters a method should have, assume that they were omitted on purpose.
 
Christophe Verré
Sheriff
Posts: 14691
16
Eclipse IDE Ubuntu VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
And don't worry, as there won't be such confusion at the exam.
 
Remko Strating
Ranch Hand
Posts: 893
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for you answers. I scored well on the last mock, so I will take the exam Friday.
 
Christophe Verré
Sheriff
Posts: 14691
16
Eclipse IDE Ubuntu VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Good luck
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic