Class, friends and inheritance

Sep 9, 2013 at 10:10pm
Alrite, can anyone please explain to me in the most
simple of manners, what the three of the above mean and
how they are related........THANK YOU VERY MUCH.

Sep 9, 2013 at 10:30pm
what about in your own words.....
Please, can anyone explain in plain simple format
how these are related to each other and how they
make programming easy.......THANK YOU.
Sep 9, 2013 at 10:33pm
A class is an expanded concept of a data structure: instead of holding only data, it can hold both data and functions.

In principle, private and protected members of a class cannot be accessed from outside the same class in which they are declared. However, this rule does not affect friends.

A key feature of C++ classes is inheritance. Inheritance allows to create classes which are derived from other classes, so that they automatically include some of its "parent's" members, plus its own.
Sep 9, 2013 at 10:58pm
Thanks Josue,
what would I do without you....
Sep 9, 2013 at 11:02pm
You're welcome, but I simply copied sentences from the links Zhuge posted and pasted them here.
Sep 9, 2013 at 11:19pm
Well then I take back my "thank you", Josue...... ;)
Sep 9, 2013 at 11:30pm
Josue Molina wrote:
You're welcome, but I simply copied sentences from the links Zhuge posted and pasted them here.


Bwahahahahaha.

That was awesome.
Topic archived. No new replies allowed.