InterviewSolution
Saved Bookmarks
| 1. |
Which among the following is wrong syntax related to static data members?(a) className :: staticDataMember;(b) dataType className :: memberName =value;(c) static dataType memberName;(d) className : dataType -> memberName;The question was posed to me in an interview.My doubt stems from Static Data Members topic in chapter Exception Handling & Static Class Members of Object Oriented Programming |
|
Answer» Correct ANSWER is (d) CLASSNAME : dataType -> memberName; |
|