473,394 Members | 1,642 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

Is VB .NET true OO

I VB .NET truelly object oriented ?
Nov 20 '05 #1
5 1274
Yes. It now fully supports inheritance, polymorphism, overloading,
overriding, interfaces, shadowing and sharing.

I'm sure this thread will fill up with those former C and Java developers
who will say that C# is better because its language allows for perhaps more
straight forward ways to do the things I mentioned and there is some truth
to that. But, the answer to your question is that YES VB.NET is now fully
OO.
"Alan" <NO**************@yahoo.com.au> wrote in message
news:eP**************@tk2msftngp13.phx.gbl...
I VB .NET truelly object oriented ?

Nov 20 '05 #2
* "Alan" <NO**************@yahoo.com.au> scripsit:
I VB .NET truelly object oriented ?


Yes, it's a PIE language (Polymorphism, Inheritance, Encapsulation).
But is that so important?

--
Herfried K. Wagner [MVP]
<http://www.mvps.org/dotnet>
Nov 20 '05 #3
Alan,
Is VB .NET truelly object oriented ? Is this a trick question? ;-)

Some people insist that to be Truly Object Oriented you HAVE to support
Multiple Inheritance! .NET does not support Multiple Inheritance, it does
however allow you to implement multiple interfaces, not exactly the same
thing, but I find its a workable alternative.

Some people insist that to be Truly Object Oriented you HAVE to support
Operator Overloading! Currently VB.NET does not support Operator
Overloading. However Whidbey (VS.NET 2004) will support Operator
Overloading.

Some people insist that to be Truly Object Oriented you HAVE to support
Templates (aka Generics)! Currently .NET does not support Templates or
Generics, however Whidbey (VS.NET 2004) will support Generics.

Some people insist that to be Truly Object Oriented you HAVE to support
Feature X! .NET and/or VB.NET does not support Feature X.

Some people insist that to be Truly Object Oriented you HAVE to support Late
Binding, VB.NET of course fully supports Late Binding at the expense of
execution time.

In my book VB.NET is Object Oriented programming on the same level as Java
and C#. As Herfried & Scott pointed out it supports Polymorphism,
Inheritance and Encapsulation.

Hope this helps
Jay

"Alan" <NO**************@yahoo.com.au> wrote in message
news:eP**************@tk2msftngp13.phx.gbl... I VB .NET truelly object oriented ?

Nov 20 '05 #4
Hi,

VB6 supported a lot of the OO features mentioned here, i.e. encapsulation,
interfaces.
The main thing that people moaned about with VB6 was that there was no
implementation inheritence which in VB.NET there now is,
(plus a ton of other OO stuff).

Bye,
Pete

"Jay B. Harlow [MVP - Outlook]" <Ja********@email.msn.com> wrote in message
news:Os**************@TK2MSFTNGP10.phx.gbl...
Alan,
Is VB .NET truelly object oriented ? Is this a trick question? ;-)

Some people insist that to be Truly Object Oriented you HAVE to support
Multiple Inheritance! .NET does not support Multiple Inheritance, it does
however allow you to implement multiple interfaces, not exactly the same
thing, but I find its a workable alternative.

Some people insist that to be Truly Object Oriented you HAVE to support
Operator Overloading! Currently VB.NET does not support Operator
Overloading. However Whidbey (VS.NET 2004) will support Operator
Overloading.

Some people insist that to be Truly Object Oriented you HAVE to support
Templates (aka Generics)! Currently .NET does not support Templates or
Generics, however Whidbey (VS.NET 2004) will support Generics.

Some people insist that to be Truly Object Oriented you HAVE to support
Feature X! .NET and/or VB.NET does not support Feature X.

Some people insist that to be Truly Object Oriented you HAVE to support

Late Binding, VB.NET of course fully supports Late Binding at the expense of
execution time.

In my book VB.NET is Object Oriented programming on the same level as Java
and C#. As Herfried & Scott pointed out it supports Polymorphism,
Inheritance and Encapsulation.

Hope this helps
Jay

"Alan" <NO**************@yahoo.com.au> wrote in message
news:eP**************@tk2msftngp13.phx.gbl...
I VB .NET truelly object oriented ?


Nov 20 '05 #5
Cor
Hi Herfried
Yes, it's a PIE language (Polymorphism, Inheritance, Encapsulation).
But is that so important?


You are growing up, some wisdom

:-))

Cor
Nov 20 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

46
by: Scott Chapman | last post by:
There seems to be an inconsistency here: Python 2.3.2 (#1, Oct 3 2003, 19:04:58) on linux2 >>> 1 == True True >>> 3 == True False >>> if 1: print "true" ....
3
by: drs | last post by:
I just upgraded my Python install, and for the first time have True and False rather than 1 and 0. I was playing around at the command line to test how they work (for instance, "if 9:" and "if...
35
by: Steven Bethard | last post by:
I have lists containing values that are all either True, False or None, e.g.: etc. For a given list: * If all values are None, the function should return None.
36
by: Remi Villatel | last post by:
Hi there, There is always a "nice" way to do things in Python but this time I can't find one. What I'm trying to achieve is a conditionnal loop of which the condition test would be done at...
14
by: Walter Dnes (delete the 'z' to get my real address | last post by:
I took a C course some time ago, but I'm only now beginning to use it, for a personal pet project. My current stumbling-block is finding an efficient way to find a match between the beginning of a...
48
by: Skybuck Flying | last post by:
Hi, I came across this C code which I wanted to understand etc it looked like this: if (-1) etc It made me wonder what the result would be... true or false ? In C and Delphi
30
by: Jason | last post by:
I am fairly new to ASP--I have been using it about 2 months. I did these tests (below), and it doesn't make sense to me. False is equal to 0, and that's fine. True should be equal to 1, but it's...
90
by: John Salerno | last post by:
I'm a little confused. Why doesn't s evaluate to True in the first part, but it does in the second? Is the first statement something different? False print 'hi' hi Thanks.
2
by: Ultrak The DBA | last post by:
Using the following query: select substr(reg_var_name,1,24) as reg_var_name, substr(reg_var_value, 1,12) as reg_var_value, level from table(sysproc.reg_list_variables()) as registryinfo; I am...
40
by: nufuhsus | last post by:
Hello all, First let me appologise if this has been answered but I could not find an acurate answer to this interesting problem. If the following is true: C:\Python25\rg.py>python Python...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.