Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Interface Question

 
Vidyavathi saravanan
Ranch Hand
Posts: 34
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator


This is one of Dan's question. Answer given as ABCI.
My doubt is the inteface member s1 by default is 'public static final'. If that is the case, how come the subclasses are allowed to modify the variable s1. Please explain
 
Barry Gaunt
Ranch Hand
Posts: 7729
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The subclasses are not modifiying the static final variable I.s1, they are redefining it. Each of the classes A,B and C has its very own String variable s1.
[ October 20, 2004: Message edited by: Barry Gaunt ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic