adplus-dvertising
frame-decoration

Question

Which of the following statements is correct?

a.

Base class pointer cannot point to derived class.

b.

Derived class pointer cannot point to base class.

c.

Pointer to derived class cannot be created.

d.

Pointer to base class cannot be created.

Answer: (b).Derived class pointer cannot point to base class.

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. Which of the following statements is correct?

Similar Questions

Discover Related MCQs

Q. Which of the following is not the member of class?

Q. Which of the following concepts means determining at runtime what method to invoke?

Q. Which of the following term is used for a function defined inside a class?

Q. Which of the following concept of oops allows compiler to insert arguments in a function call if it is not specified?

Q. How many instances of an abstract class can be created?

Q. Which of the following concepts of OOPS means exposing only necessary information to client?

Q. Why reference is not same as a pointer?

Q. Which of the following concepts provides facility of using object of one class inside another class?

Q. Which of the following is an abstract data type?

Q. Which of the following concepts means adding new components to a program as it runs?

Q. Which of the following statement is correct?

Q. Which of the following correctly describes overloading of functions?

Q. Which of the following is correct about function overloading?

Q. Which of the following is correct about class and structure?

Q. Which of the following concepts means wrapping up of data and functions together?

Q. Which of the following concepts means waiting until runtime to determine which function to call?

Q. Which of the following functions are performed by a constructor?

Q. The address of a variable temp of type float is

Q. What is the output of the following code :
char symbol[3]={‘a’,‘b’,‘c’};
for (int index=0; index<3; index++)
cout << symbol [index];

Q. The process of building new classes from existing one is called ______.