C++ Programming - OOPS Concepts - Discussion

Discussion Forum : OOPS Concepts - General Questions (Q.No. 33)
33.
Which of the following statement is correct?
C++ allows static type checking.
C++ allows dynamic type checking.
C++ allows static member function be of type const.
Both A and B.
Answer: Option
Explanation:
No answer description is available. Let's discuss.
Discussion:
11 comments Page 2 of 2.

Arnab Pratihar said:   4 weeks ago
C++ allows static type checking normally and dynamic type checking (by using the virtual keyword).

But other options are incorrect:

Constant function promises that it can't modify the object, only receives and performs non-modifiable operations.
Where a static member function doesn't depend on the objects.
So both are not related.


Post your comments here:

Your comments will be displayed after verification.