in Object Oriented Programming
1,001 views
0 votes
0 votes

Which of the following is true?

(A) A “static” member of a class cannot be inherited by its derived class.

(B) A “static” member of a class can be initialized only within the class it is a member of.

(C) A “static” member of a class can be initialized before an object of that class is created.

(D) 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.

in Object Oriented Programming
1.0k views

1 Answer

0 votes
0 votes

Answer: (C)

A “static” member of a class can be initialized before an object of that class is created.

Related questions

Quick search syntax
tags tag:apple
author user:martin
title title:apple
content content:apple
exclude -tag:apple
force match +apple
views views:100
score score:10
answers answers:2
is accepted isaccepted:true
is closed isclosed:true