Question about Data Members

The Partridge Family were neither partridges nor a family. Discuss.
Post Reply
MrSneekz
Posts: 9
Joined: September 6th, 2019, 12:07 am

Question about Data Members

Post by MrSneekz » September 7th, 2019, 5:08 pm

Are data members considered to be objects or can they be used as objects and/or variables?
Is this the same for member functions?

User avatar
cyboryxmen
Posts: 170
Joined: November 14th, 2014, 2:03 am

Re: Question about Data Members

Post by cyboryxmen » September 8th, 2019, 8:04 am

Every variable in C++, member or non-member, is an object. Functions however are not
Zekilk

MrSneekz
Posts: 9
Joined: September 6th, 2019, 12:07 am

Re: Question about Data Members

Post by MrSneekz » September 8th, 2019, 4:27 pm

Thank you for clearing that up!

Post Reply