HSC Science (Computer Science) 12th Board ExamMaharashtra State Board
Share
Notifications

View all notifications

Explain in short the three special characteristic of a static data member in a class. - HSC Science (Computer Science) 12th Board Exam - Computer Science 1

Login
Create free account


      Forgot password?

Question

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

Solution

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.

  Is there an error in this question or solution?

APPEARS IN

 2016-2017 (March) (with solutions)
Question 1.2.2 | 3.00 marks
Solution Explain in short the three special characteristic of a static data member in a class. Concept: C++ Programming.
S
View in app×