cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
Beginners
Inheritance and dynamic variable creatin
Inheritance and dynamic variable creating questions
Oct 2, 2013 at 8:58am UTC
ahmadtahir
(1)
Hi!
Suppose there is a class ClassC and class ClassA and ClassB are inherited from class ClassC. I was wondering what these lines will actually do if valid.
1
2
ClassB b1 =
new
ClassA(); ClassB b2 =
new
ClassC();
Last edited on
Oct 2, 2013 at 8:59am UTC
Oct 2, 2013 at 9:01am UTC
mutexe
(2372)
Have you actually tried it?
Topic archived. No new replies allowed.