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 1 of 2.

Kalpana said:   1 decade ago
In c++ allows both static and dynamic.

GOVIND said:   1 decade ago
In the concept of early and late binding.

Shashikant said:   1 decade ago
can anyone explain what is static type checking and dynamic type checking.??

Atul patel said:   1 decade ago
Yes.

Static type checking is checking the type of reference and object for normal reference.

And dynamic type checking is checking reference type of polymorphic reference.
(2)

John said:   1 decade ago
Static type checking: checking the code of program at the time of early binding ie. At compile time.

Dynamic type checking: checking the code of program at the time of late binding ie. At runtime.
(1)

Kavya said:   1 decade ago
Static type: Checking code at the compile time.

Dynamic type: Checking code at the run time.

Rajmani said:   10 years ago
Can anyone explain why third option is incorrect?

KOMAL...! said:   9 years ago
C++ allows static type checking and C++ allows dynamic type checking

Vishal said:   7 years ago
But what for is it checking for?

I mean the compiler already checks for syntax error.

Pulkit said:   5 years ago
A 'const member function' is not allowed to modify the object it is called on, but static member functions are not called on any object. It is used directly by scope resolution operator. Thus having a const static member function makes no sense, hence it is illegal.


Post your comments here:

Your comments will be displayed after verification.