C++ Programming - OOPS Concepts - Discussion

Discussion Forum : OOPS Concepts - General Questions (Q.No. 3)
3.
Which of the following statements is correct?
Base class pointer cannot point to derived class.
Derived class pointer cannot point to base class.
Pointer to derived class cannot be created.
Pointer to base class cannot be created.
Answer: Option
Explanation:
No answer description is available. Let's discuss.
Discussion:
41 comments Page 4 of 5.

Lav kumar said:   1 decade ago
Derive class is the derived one and there is no link with the base class there.

Bhavna said:   1 decade ago
Derived class is a child class and base class is like parent to that.

Sneha kuwar said:   1 decade ago
Because derived class does not have detailed about its based class.

Divya said:   1 decade ago
Why D is not correct? Is we create pointer for base class?

Rucha said:   4 years ago
C is a top-down approach and cpp is a bottom-up approach.
(3)

Kaustav said:   1 decade ago
Down casting possible, up casting not possible.

Kazi Ameen said:   10 years ago
It is just because of the top-down approach.

Priya modak said:   8 years ago
I agree because it is a top-down approach.

Deepak Tak said:   1 decade ago
Because its top-down approach.

Fayaz said:   1 decade ago
Why option D is not correct?


Post your comments here:

Your comments will be displayed after verification.