Re: User Controls (Active X) - Da Process
- From: "Ralph" <nt_consulting64@xxxxxxxxx>
- Date: Mon, 7 Sep 2009 03:52:40 -0500
Larry Serflaten wrote:
"Ralph" <nt_consulting64@xxxxxxxxx> wrote
I get annoyed everytime I hear the expression "VB cannot do *real*<snipped for brievity>
inheritance".
I'd agree with that sentiment. VB can't do 'real' inheritance.
For me inheritance includes the implementation as well as the
interface.
VB's 'interface inheritance' is more like interface duplication, from
which you get polymorphism. When a VB class implements an interface,
it has to implement all the members of that interface, even where the
code is a duplication of whats in the base class.
Even if the class delegates to an internally held base class, its
still a duplication in that the world calls on an inheirited member,
and the class in turn calls on the base class member. A process that
is duplicated for every level of inheiritance.
Another thing which doesn't sit right with me, if B inheirits A,
and C inheirits B, then the C object should be able to called
like an object of type A. Something VB's 'interface inheiritance'
doesn't do. In other words, it doesn't go multi-levels, like 'true'
inheiritance should....
<insert>2 cents</insert>
LFS
Agree on all counts.
But appreciate that what you are describing are all coding constructs, or
tools, that may be available to an OOPL to make an OO programmer's life
easier and aid in producing a better representation in code of a particular
OOA/OOD model. It has no impact on whether VB, as feature limited as it is
as an OOPL, can or can not do *real* inheritance.
Nor more specifically have any impact on whether or not the OP can implement
a solution in VB.
-ralph
.
- Follow-Ups:
- Re: User Controls (Active X) - Da Process
- From: Larry Serflaten
- Re: User Controls (Active X) - Da Process
- References:
- User Controls (Active X) - Da Process
- From: Webbiz
- Re: User Controls (Active X) - Da Process
- From: Ralph
- Re: User Controls (Active X) - Da Process
- From: Webbiz
- Re: User Controls (Active X) - Da Process
- From: Eduardo
- Re: User Controls (Active X) - Da Process
- From: Webbiz
- Re: User Controls (Active X) - Da Process
- From: Ralph
- Re: User Controls (Active X) - Da Process
- From: Larry Serflaten
- User Controls (Active X) - Da Process
- Prev by Date: Re: huge array
- Next by Date: Re: Timer Class Terminate
- Previous by thread: Re: User Controls (Active X) - Da Process
- Next by thread: Re: User Controls (Active X) - Da Process
- Index(es):
Relevant Pages
|