• Post Reply Bookmark Topic Watch Topic
  • New Topic

Please Clarify this doubt  RSS feed

 
Venkat Ramsimha
Ranch Hand
Posts: 127
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,
I would like to know why cant i access static member variables of class venkat by using class name when i can access static method(qualification) in the class

Anybody can help me in this regard with an example

[ December 29, 2004: Message edited by: Barry Gaunt ]
 
Barry Gaunt
Ranch Hand
Posts: 7729
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Look carefully at the error message the compiler prints and THINK:In the method main, what are Venkat.position and Venkat.salary supposed to do?
[ December 29, 2004: Message edited by: Barry Gaunt ]
 
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!