Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

overriding help

 
Rob Michaelson
Ranch Hand
Posts: 36
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,
I need to overide the AViewA (differnet class than the one below called MyScene) with get and set Color> (public Color getColor() ) and >(public void setColor(Color c)).

Thanks
Rob
I am not sure how it works or where to put it
 
Ernest Friedman-Hill
author and iconoclast
Marshal
Pie
Posts: 24212
35
Chrome Eclipse IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Note that I have no idea whatsoever what "dlibrary.AViewA" is, although I don't think I need to to answer this.
Right before the closing brace, you want to have something like

You don't say -why- you want to override these methods, so I can't tell you what to put in place of the "// More code here" comments, but it's a start.
 
Rob Michaelson
Ranch Hand
Posts: 36
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you for your reply!
AViewA is a typo sorry
would my own code be something like changing the ARectangle or ARectangle.setColor (rgb); ??
Rob
 
Rob Michaelson
Ranch Hand
Posts: 36
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello again
so far I have this override:

Any help would be greatly appreciated
Rob
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic