Redirected
edited by
154 views
0 votes
0 votes

Which of the following is true?

  1. A "static" member of a class cannot be inherited by its derived class.
  2. A "static" member of a class can be initialized only within the class it is a member of.
  3. A "static" member of a class can be initialized before an object of that class is created.
  4. Since "static" member of a class is actually a global element, it does not require a class/object qualifier to access it independently of class/object.

     

edited by

1 Answer

Related questions

0 votes
0 votes
1 answer
2
admin asked Jan 6
102 views
The complexity of Kruskal's minimum spanning tree algorithm on a graph with ' $n$ ' nodes and ' $e$ ' edges is :$\mathrm{O}(n)$$\mathrm{O}(n \log n)$$\mathrm{O}(e \log n)...
0 votes
0 votes
1 answer
3
admin asked Jan 6
103 views
If a code is t-error correcting, the minimum Hamming distance is equal to :$2 t+1$$2 t$$2 t-1$$t-1$
0 votes
0 votes
3 answers
4
admin asked Jan 6
299 views
The set of positive integers under the operation of ordinary multiplication is :not a monoidnot a groupa groupan Abelian group