Q question about inheritance

T

Tony Johansson

Hello!

What does this mean.

"The use of inheritance to provide various implementations of a single
abstraction tightly binds these implementations to the abstarction. Therfore
it, is difficult to update the client's code and reuse the abstraction, In
C++, the complete class definition, including the private and protected
sections, is needed to compile the client's code; this leads to a tight
coupling between the abstraction and its implementations, which makes
modifications more difficult."

I thougt inheritance was good it makes code reuse and so on.


//Tony
 
D

Donovan Rebbechi

Hello!

What does this mean.

"The use of inheritance to provide various implementations of a single
abstraction tightly binds these implementations to the abstarction. Therfore
it, is difficult to update the client's code and reuse the abstraction, In
C++, the complete class definition, including the private and protected
sections, is needed to compile the client's code; this leads to a tight
coupling between the abstraction and its implementations, which makes
modifications more difficult."

I thougt inheritance was good it makes code reuse and so on.

You've already posted this 5 times. Crapflooding the newsgroup isn't going to
help you get more responses.

Cheers,
 
V

Victor Bazarov

Donovan said:
[...]
I thougt inheritance was good it makes code reuse and so on.

You've already posted this 5 times. Crapflooding the newsgroup isn't
going to help you get more responses.

But it definitely can land you in some killfiles...
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,777
Messages
2,569,604
Members
45,229
Latest member
GloryAngul

Latest Threads

Top