cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
UNIX/Linux Programming
OOP doubt
OOP doubt
May 16, 2013 at 5:31am UTC
jaden5165
(54)
1
2
3
Aclass *v3main; Bclass *dobject;
v3main = dobject
;
May I know does this
v3main = dobject
become v3main will be object of Bclass ?
Where can I study about this kind of stuff?
Last edited on
May 16, 2013 at 5:33am UTC
May 16, 2013 at 8:23am UTC
kbw
(9488)
The statement means,
v3main
is a pointer to a
Aclass
.
dobject
is a pointer to a
Bclass
.
Assign thevalue of the pointer to the instance of
Bclass
,
dobject
, to the instance of
Aclass
,
v3main
.
You have to start with object oriented design. This is a good place to start with UML,
http://martinfowler.com/books/uml.html
You can't code C++ objects unless you have a design. I'm sure someone else can point you to a C++ source.
Topic archived. No new replies allowed.