If you read any text on OO, it uses terms such as virtual, abstract etc.
VB and C# have virtual and abstract (although VB uses different keywords
to fit in with the language) - I learned OO programming from a Java book
because it spoke in terms of virtual and abstract, and those concepts
applied directly to c#.

Now, if C# had virtuals by default, there would be no need for the
virtual keyword, and there would be a nonvirtual (or something to that
effect) in it's place. Would mean that most of the texts out there on OO
programming wouldn't quite apply so directly.

Dino

-----Original Message-----
From: Discussion of advanced .NET topics.
[mailto:[EMAIL PROTECTED] On Behalf Of Eric Means
Sent: Saturday, 8 July 2006 13:20
To: [email protected]
Subject: Re: [ADVANCED-DOTNET] Virtual methods in .NET - was
Implementing an Interface - C# vs. VB.NET

Keywords have nothing to do with OO; they're pure language design. OO
contains the concepts of "virtual" and "non-virtual"; how a specific
language maps keywords to those concepts (as in Java's default = virtual
and
"final" = non-virtual) is up to the individual language.

On 7/7/06, Dean Cleaver <[EMAIL PROTECTED]> wrote:
>
> Because in OO programming, there is no keyword for "non-virtual".
>
> It's an OO issue, not a .Net issue.
>
> Dino
>
> -----Original Message-----
> From: Discussion of advanced .NET topics.
> [mailto:[EMAIL PROTECTED] On Behalf Of David
> Lanouette
> Sent: Saturday, 8 July 2006 11:37
> To: [email protected]
> Subject: [ADVANCED-DOTNET] Virtual methods in .NET - was Implementing
an
> Interface - C# vs. VB.NET
>
> Anybody know why methods aren't virtual by default in .NET?  It seems
> like a
> really bad default to have all methods non-virtual.
>
>
> ______________________________
> - David Lanouette
> - [EMAIL PROTECTED]
>
> "Excellence, then, is not an act, but a habit" - Aristotle
>
> ===================================
> This list is hosted by DevelopMentor(r)  http://www.develop.com
>
> View archives and manage your subscription(s) at
> http://discuss.develop.com
>
> ===================================
> This list is hosted by DevelopMentor(r)  http://www.develop.com
>
> View archives and manage your subscription(s) at
> http://discuss.develop.com
>



--
Eric Means
[EMAIL PROTECTED]
http://www.randomtree.org/eric/

===================================
This list is hosted by DevelopMentor(r)  http://www.develop.com

View archives and manage your subscription(s) at
http://discuss.develop.com

===================================
This list is hosted by DevelopMentorĀ®  http://www.develop.com

View archives and manage your subscription(s) at http://discuss.develop.com

Reply via email to