hi guys and gals
These are probably completely noob questions to most C++ programmers but coming from a Java background I am pretty much struggling with.
If anyone has studied Java it would be great a bonus.
In Java suppose we had a Borrower class and a Copy class.
Just for simplicity imagine Borrower had vars of:
and Copy had:Code:int id; string name;
so the Borrower being the obvious relationship.Code:int id; string copyName; Borrower borrower;
How do you go about implementing this in C++?
As most things I have "googled" talk about inheritance which I understand (hopefully ) but not passing of objects?
Thanks all, hopefully not bored you and someone can help me