1.

Which of the following is correct?(a) C++ allows static type checking(b) C++ allows dynamic type checking.(c) C++ allows static member function to be of type const.(d) C++ allows both static and dynamic type checkingI have been asked this question by my college director while I was bunking the class.My doubt is from OOPs Concept in division Basics Concepts of C++ of C++

Answer»

Correct option is (d) C++ allows both static and dynamic type CHECKING

Easy explanation - C++ allows both static and dynamic type checking i.e. TYPES are checked by the COMPILER.



Discussion

No Comment Found

Related InterviewSolutions