• Post Reply Bookmark Topic Watch Topic
  • New Topic

Accessing abstract class variables via the implentation class  RSS feed

 
Chris Stabler
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have an abstract class that has a few classes and variables but i am having issues with these variables being "seen" by the implentation class.



**Implementation Class**



java.lang.NoSuchFieldError: outerRing


so my question is is that how come the implementation class cannot see a member of a class that is inside my base class? Area is just a class from the java.awt.geom class.

thanks for your help in advance.


 
Matthew Brown
Bartender
Posts: 4568
9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
outerRing != outRing

Is it as straightforward as that, or is that a mistake in your posting?
 
Chris Stabler
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Matthew Brown wrote:outerRing != outRing

Is it as straightforward as that, or is that a mistake in your posting?


mistake in posting - i will correct
 
Alex Hurtt
Ranch Hand
Posts: 98
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
shape.outRing ??
 
Lino Larios
Greenhorn
Posts: 28
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi

Ive run the code that i can see but i can get such error.


regards
 
Campbell Ritchie
Marshal
Posts: 56562
172
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Chris Stabler wrote:mistake in posting - i will correct
You ought to have left it unchanged; now you have changed it nobody can understand the replies.

And why have you got public fields in your classes. That looks like bad design to me.
 
Paul Clapham
Sheriff
Posts: 22832
43
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Campbell Ritchie wrote:And why have you got public fields in your classes. That looks like bad design to me.


Likewise having classes which are for graphic type things extending Thread...
 
Abimaran Kugathasan
Ranch Hand
Posts: 2066
Clojure IntelliJ IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How do you access the member class of your super class? The implementation class can see the member class of the super class as usual like any other non-private members. Check the code below.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!