sovichet.ly@gmail.com <sovichet.ly@gmail.com> wrote:
>> I am copying the Rectangle Class right ouf of the book I am studying
>> from. Why do I get errors declaring color to be static. I get " The
[quoted text clipped - 5 lines]
>> a "no enclosing instance of type C5E1 is accessible. What am i doing
>> wrong?
> What you are doing wrong is that you have Rectangle as an inner class,
> but it contains static declarations that an inner class may not have.
> You may want to read about the keyword "this" and nested classes in
> book from which you copied the class..
You may also want to read the answer I posted the first time you asked this
question, in "declaring static methods, enclosing instances":
sovichet.ly@gmail.com <sovichet.ly@gmail.com> wrote:
> I am working directly out of a beginning programmers book and trying
> to type out this example. I have two questions.
[quoted text clipped - 9 lines]
> the error that no enclosing instance type C5E1 is accessable. Must
> qualify the allocation with an enclosing instance of type C5E1.

Signature
Lew