• Post Reply Bookmark Topic Watch Topic
  • New Topic

set instance with child  RSS feed

 
Marko Debac
Ranch Hand
Posts: 121
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

Can I somehow call metod from super class (from parent) within child, and set parents variable, so that parent can use them.

Something like


Thank you,
Marko
 
Marko Debac
Ranch Hand
Posts: 121
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am sory, this is the child code
and with servlet code I want to get out 4
 
Jeroen T Wenting
Ranch Hand
Posts: 1847
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
you cannot call a method in a derived class from within its superclass, unless that method is an overridden method in which case an instance of the derived class will use its own overriding method instead of the one in the superclass.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!