Hi,
I would like to know what is "Kind of " relationship and "has a" relation ship between the C++ objects.
I assume the kind of relationship means the inheritane and has a relationship means creating object within another object. Please clarify..
Thanks,
Panch.
4 Replies - 7080 Views - Last Post: 05 August 2012 - 10:59 AM
#1
"has a" relationship and "Kind of " relationship i
Posted 19 February 2009 - 02:36 AM
Replies To: "has a" relationship and "Kind of " relationship i
#2
Re: "has a" relationship and "Kind of " relationship i
Posted 19 February 2009 - 05:42 AM
Probably better to have asked this in the "Computer Science" forum because you are (or your teacher is) asking about OOP principles which are not C++ specific.
Have a read here:
http://en.wikipedia.org/wiki/Is-a
and here:
http://en.wikipedia.org/wiki/Has-a
Have a read here:
http://en.wikipedia.org/wiki/Is-a
and here:
http://en.wikipedia.org/wiki/Has-a
#3
Re: "has a" relationship and "Kind of " relationship i
Posted 19 February 2009 - 08:16 AM
#4
Re: "has a" relationship and "Kind of " relationship i
Posted 05 August 2012 - 10:46 AM
Kind of relationship means ---"inheritance"(obj of one class gets properties from obj's present in other class )
has a relationship means ---"delegation"(obj of one class is used as data member of another class)
for more reference refer ashok kamthane's oop with ansi & turbo c++ ebook
has a relationship means ---"delegation"(obj of one class is used as data member of another class)
for more reference refer ashok kamthane's oop with ansi & turbo c++ ebook
#5
Re: "has a" relationship and "Kind of " relationship i
Posted 05 August 2012 - 10:59 AM
Please don't resurrect old topics.
Jim
Jim
Page 1 of 1
|
|

New Topic/Question
This topic is locked



MultiQuote







|