Links

Lists

Latest Updates

Ruby On Rails List
Python list
Advanced Java
The JavaScript List
Apache Users
Full Disclosure
Linux Security

Search the archives!


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Inheritance Question


  • From: Sunil.Mishra at gs.com (Mishra, Sunil)
  • Subject: Inheritance Question
  • Date: Sat Nov 12 19:30:16 2005

no direct way...
May be B can provide a wrapper for it by calling super.methA()...
Then C can call that using super.wrapperMethod()...


Sunil Mishra
Goldman Sachs,
sunilmishra@xxxxxxxxx
201-459-1185(R)
212-357-3922(O)



> -----Original Message-----
> From:	Bala Paranj [SMTP:bparanj@xxxxxxxxxx]
> Sent:	Thursday, September 30, 1999 7:32 PM
> To:	advanced-java@xxxxxxxxxxxxxxxx
> Subject:	Inheritance Question
> 
> Greetings Java Gurus,
> 
> Please look at the following code.
> class A {
>  methA (){
>   print "A";
>  }
> }
> class B extends A  {
>  methA() {
>   print "A in B";
>  }
> }
> class C extends B  {
>  methA() {
>   print "A in C";
>  }
> }
> How can I call the methA in class A from class C ?
> 
> Thanks for your time,
> Bala
> 
> 
> 
> 
> ________________________________________________________________
> Get FREE voicemail, fax and email at http://voicemail.excite.com
> Talk online at http://voicechat.excite.com
> 
> ---
> To unsubscribe, mail advanced-java-unsubscribe@xxxxxxxxxxxxxxxx
> To get help, mail advanced-java-help@xxxxxxxxxxxxxxxx

---
To unsubscribe, mail advanced-java-unsubscribe@xxxxxxxxxxxxxxxx
To get help, mail advanced-java-help@xxxxxxxxxxxxxxxx