Like the title says; Why would you want to make class objects (instances of a class) instead of built in types parameters of a function and in C . E.g. Why do this: class Person { public: void SetAge(Person &Age); instead of this: class Person { public: void SetAge(int iAge);. I don't really understand why don't you create parameters using only built in data types.
Tlotleng 0 Newbie Poster
Lerner 582 Nearly a Posting Maven
rubberman 1,355 Nearly a Posting Virtuoso Featured Poster
ddanbe commented: Great answer! +15
Neuman 0 Newbie Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.