Computer Science, asked by avesss, 2 months ago

write any two characteristics of static member function. (c++)​

Answers

Answered by riyujain2
1

Answer:

Static Data member has the following properties:

It is initialized by zero when first object of class is created.

Only one copy of static data member is created for the entire class and all object share the same copy.

Its scope is within class but its lifetime is entire program.

This is the question of class 10th...of IT.

Answered by dhruvisain07
0

Answer

  1. It is initialized to zero when the first object of its class is created.
  2. It is visible only within the class, but its lifetime is the entire program.

Similar questions