From: MRe on 4 Feb 2010 20:09 Hi again markspace, > I'm not sure I understand the mistake I've made in the quote you've > highlighted (given the context in which you've quoted it) - as far as > I can tell, the linked document affirms what I've said? I just stepped away there and had a think about what you said, and sorry, I understand what you mean now. Thank you Kind regards, Eliott
From: Mike Schilling on 4 Feb 2010 21:41 The title of this post made me wonder if Java has gotten too complicated for its own good. It sounds like one of the obscurer features of C++.
From: Roedy Green on 4 Feb 2010 23:50 On Thu, 4 Feb 2010 10:10:09 -0800 (PST), MRe <pgdown(a)gmail.com> wrote, quoted or indirectly quoted someone who said : > > Two example programs below, I'm wondering if someone could tell me >why example 1 doesn't work, given that example 2 does? The error says >that a nested class has protected access, but I am accessing it from >an inheriting class Protected is not public. Protected methods are invisible outside the class, unless that class extends the base class. See http://mindprod.com/jgloss/protected.html http://mindprod.com/jgloss/scope.html -- Roedy Green Canadian Mind Products http://mindprod.com You can�t have great software without a great team, and most software teams behave like dysfunctional families. ~ Jim McCarthy
From: Roedy Green on 4 Feb 2010 23:54 On Thu, 04 Feb 2010 20:50:15 -0800, Roedy Green <see_website(a)mindprod.com.invalid> wrote, quoted or indirectly quoted someone who said : >Protected is not public. Protected methods are invisible outside the >class, unless that class extends the base class. oops. Protected is not public. Protected methods are invisible outside the PACKAGE, unless the referring class extends the base class. -- Roedy Green Canadian Mind Products http://mindprod.com You can�t have great software without a great team, and most software teams behave like dysfunctional families. ~ Jim McCarthy
From: Roedy Green on 5 Feb 2010 00:49 On Thu, 4 Feb 2010 10:10:09 -0800 (PST), MRe <pgdown(a)gmail.com> wrote, quoted or indirectly quoted someone who said : > > Two example programs below, I'm wondering if someone could tell me >why example 1 doesn't work, given that example 2 does? The error says >that a nested class has protected access, but I am accessing it from >an inheriting class see http://java.sys-con.com/node/35776 on extending inner classes. Unfortunately the associated listings seem to have gone astray. I have written Sys-Con. -- Roedy Green Canadian Mind Products http://mindprod.com You can�t have great software without a great team, and most software teams behave like dysfunctional families. ~ Jim McCarthy
First
|
Prev
|
Next
|
Last
Pages: 1 2 3 Prev: Java reg exp question Next: Example of building a list of file names? |