answersLogoWhite

0


Best Answer

Static data is data that does not change from program load to program exit. Static data member do not apply for c. In c++, a static data member is one that is common for all instances of that class.

User Avatar

Wiki User

14y ago
This answer is:
User Avatar
More answers
User Avatar

Wiki User

14y ago

static data,is a member of z class,not objects.

This answer is:
User Avatar

User Avatar

Wiki User

12y ago

A static data member of a class is common to all instances of that class. An ordinary data member of a class is unique to a single instance of that class.

This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: What is the difference between static data member and ordinary data member?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Continue Learning about Engineering

WAP to show the difference between a variable and static variable?

difference between constant and static variables in java


What is the difference between static function and global static function?

'global static'?! There is no such thing.


How you declare class scoped variables and member functions?

To scope class members to the class (rather than to instances of the class), declare them as static members of the class. Static members are accessible even when no instances of the class exist. As such, static member functions do not have access to a 'this' pointer, unlike ordinary (nonstatic) member functions.


What is the Difference between public static void and static public void?

There is no difference between public static void and static public void


What is the difference between static and nonstatic member with example in java?

It depends on whether the member is a static variable or a static method of the class.A non-static member variable is an instance variable. That is, each instance of the class has its own independent set of instance variables.A static member variable is not associated with any one instance of the class, and exists even when there are no instances of the class. As with all static variables, it exists for the entire duration of the program.A non-static member method is an instance method, thus the method automatically inherits a this pointer.A static member method does not inherit a this pointer, but it does have private access to to the class. Thus specific instances can be passed to a static method if necessary.Static members can be thought of as being common to all instances of a class, rather than a specific instance, even though no instances are actually required in order to make use of them.

Related questions

WAP to show the difference between a variable and static variable?

difference between constant and static variables in java


What is the difference between complex permittivity and static dielectric conatant?

What is the difference between complex permittivity and static dielectric conatant?


What is the difference between static function and global static function?

'global static'?! There is no such thing.


How you declare class scoped variables and member functions?

To scope class members to the class (rather than to instances of the class), declare them as static members of the class. Static members are accessible even when no instances of the class exist. As such, static member functions do not have access to a 'this' pointer, unlike ordinary (nonstatic) member functions.


When do you declare a member as static in java?

You declare a member static whenever the member should be regarded as being local to the class rather than being local to objects of the class. Static members are shared by all instances of the class. Static methods of a class differ from ordinary members in that they do not have an implicit "this" reference, which means they can be invoked even when no instances of the class exist.


What is the Difference between public static void and static public void?

There is no difference between public static void and static public void


What is the difference between static charge and static electricity?

in my own explanation static charge is a reaction between the (+)protons and (-)electrons an the effect of this reaction is called static electricity.


What is the difference between static electricity and static discharge?

i love v a g i n a


Difference between static and dynamic hazards?

lauda


What is the difference between static and dynamic fighting?

Static stays the same and dynamic is always different.


What is the difference between free fall and static line parachute jumps?

static line jumps are static, free fall are not :P


What is the difference between static and nonstatic member with example in java?

It depends on whether the member is a static variable or a static method of the class.A non-static member variable is an instance variable. That is, each instance of the class has its own independent set of instance variables.A static member variable is not associated with any one instance of the class, and exists even when there are no instances of the class. As with all static variables, it exists for the entire duration of the program.A non-static member method is an instance method, thus the method automatically inherits a this pointer.A static member method does not inherit a this pointer, but it does have private access to to the class. Thus specific instances can be passed to a static method if necessary.Static members can be thought of as being common to all instances of a class, rather than a specific instance, even though no instances are actually required in order to make use of them.