Class B needs to be public public class B extends A {
Class A needs to be public public Class A { Barbara Baughman X2157 On Mon, 12 Dec 2005, john oh wrote: > Hello, > > I have a class (B) that extends another (A) like so > =============================================== > class A{ > protected String str = "A"; > public String doA() > return this.str; > } > > class B extends A{ > } > =============================================== > > In my template, I use the inherited method doA(), but this does not > work. It doesn't print "A" > =============================================== > template.tpl > $b.doA() > =============================================== > > > I'm probably doing something wrong here. Can anyone see a problem with this? > > > > Thank you, > John > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]