मराठी
महाराष्ट्र राज्य शिक्षण मंडळएचएससी विज्ञान (संगणक विज्ञान) इयत्ता १२ वी

Explain in short the three special characteristic of a static data member in a class. - Computer Science 1

Advertisements
Advertisements

प्रश्न

Explain in short the three special characteristic of a static data member in a class.

टीपा लिहा

उत्तर

The three special characteristics of a static data member in a class are as follows :
(1) It is initialized to zero when the first object of its class is created. No other initialization is permitted.
(2) Only one copy of that member is created for the entire class and is shared by all the objects of that class, no matter how many objects are created.
(3) It is visible only within the class, but its life time is the entire program.

shaalaa.com
C++ Programming
  या प्रश्नात किंवा उत्तरात काही त्रुटी आहे का?
2016-2017 (March)

APPEARS IN

Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×