By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
446,190 Members | 833 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 446,190 IT Pros & Developers. It's quick & easy.

inheritance, pointercast

P: n/a
Hi, here a quick question:

I have class A,B,C where B and C is extended from A.

I would like to construct A objects like:

A *a3 = new A(a1, a2);

and a3 should be an object of type B or C.

Is this possible?
| true: How?
| false: Can you give me a nice solution?

Thanks for your time

Jul 19 '05 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.