Some questions about inheritance
- From: "Tony Johansson" <johansson.andersson@xxxxxxxxx>
- Date: Mon, 29 Aug 2005 15:53:20 GMT
Hello Experts!
I have some questions about inheritance that I want to have an answer to.
It says "Abstract superclasses define a behavioral pattern without
specifying the implementation"
I know that an abstract class doesn't have any implementaion even if a
default implementatiion can be supplied for pure virtual methods.
What does it actually mean with saying that an Abstract superclasses define
a behavioral pattern?
What does it mean with saying that subclasses should respect the semantics
of the superclass?
Code inheritance
This form of inheritance could be called "convenience inheritance". The
subclass "is not a" superclass,
but can use some of its implementation. The functions of the superclass need
not be valid for the subclass, and if they are they may have different
semantics.
Here what does it mean with saying . . .and if they are they may have
different semantics?
Is delegation the same as aggregation and composition?
Many thanks
//Tony
.
- Follow-Ups:
- Re: Some questions about inheritance
- From: Bruno Desthuilliers
- Re: Some questions about inheritance
- From: H. S. Lahman
- Re: Some questions about inheritance
- From: Kallol Borah
- Re: Some questions about inheritance
- From: Kallol Borah
- Re: Some questions about inheritance
- Prev by Date: Re: Singleton Pattern
- Next by Date: Re: chooses not to generate code at all
- Previous by thread: Re: C++ implementation for C API ---- converting legacy C code to C++
- Next by thread: Re: Some questions about inheritance
- Index(es):
Relevant Pages
|