prabhu said:
hello to all,
Please can anybody tell me the differnece between static and ordinary
member variables.
It's better to look for answers to such questions in your favourite textbook
else google is your friend.
People on this ng expect the poster to have done some kind of homework before
asking questions.
Please take care of it.
Anyways, static members are common across all objects of a class i.e. there is
only one common instance for all objects of the class.
Member variables on the contrary are specific to each object and are not shared
amongst objects of the class.
Best wishes,
Sharad