473,385 Members | 1,610 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,385 software developers and data experts.

VB.NET and object-oriented ??

Is VB.NET is Pure Object Oriented Language? If so, then how it is possible
to write VB.NET Console Applications without classes? For Example:

Module M1
Sub Main()
System.Console.WriteLine("Hello World.")
End Sub
End Module
Here there is no class used. Then how can we say it is a Pure Object
Oriented Language.
Nov 21 '05 #1
3 1240
"Julianna" <an*******@discussions.com> schrieb:
Is VB.NET is Pure Object Oriented Language? If so, then how
it is possible to write VB.NET Console Applications without
classes? For Example:

Module M1
Sub Main()
System.Console.WriteLine("Hello World.")
End Sub
End Module

Here there is no class used. Then how can we say it is a Pure Object
Oriented Language.


Gladly VB.NET is not a pure OOP language only. VB.NET includes many
additional non-OO productivity featurers, but still supports PIE.

--
Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/>
Nov 21 '05 #2
hi,

VB.Net is an Object oriented programming language because it supports all
the requirements like Inheritance, polymorphism etc.. Infact i should also
include the Structured exception handling also. To use or not to use any of
this function is a programmer choice. As far as your question is concerned,
it is true that here you are not creating any class. But if you look at its
IL code, you will see that VB.NET compiler has created a class in it. This
module is just to make the VB 6.0 people comfirtable with programming in
VB.NET and Microsoft has done its effort in making the VB.NET compiler
compatible with some good feature of Vb 6.0

regards
Nishith

"Julianna" wrote:
Is VB.NET is Pure Object Oriented Language? If so, then how it is possible
to write VB.NET Console Applications without classes? For Example:

Module M1
Sub Main()
System.Console.WriteLine("Hello World.")
End Sub
End Module
Here there is no class used. Then how can we say it is a Pure Object
Oriented Language.

Nov 21 '05 #3
Hi Julianna, nice to meet you!

I think you confuse the terms a bit... For example compare C and C++. Most
people agrre to the fact that C++ is a pure OO language, whilst C is not. But
yet you can define a

struct Car
{
};

in C++... but that doesn't mean it is less OO. What differes is that in C
you can't use inheritance like

virtual class Car : Vehicle
{
}

or polymorphism.

It is the same difference in VB6 and VB.NET... You can't write pure OO code
in vb6, but you can in VB.NET... But that doesn't mean that they have thrown
out all the old syntax and structures. The struct still applies in vb.net
(compare the Type keyword)... but it still provide you with all the tools you
need to write OO programs...

Am I confusing it? Please don't worry about the"pure" word here... But .net
framwork and vb.net is as close to "pure" OO you will ever come, I think.

/Henrik

"Julianna" wrote:
Is VB.NET is Pure Object Oriented Language? If so, then how it is possible
to write VB.NET Console Applications without classes? For Example:

Module M1
Sub Main()
System.Console.WriteLine("Hello World.")
End Sub
End Module
Here there is no class used. Then how can we say it is a Pure Object
Oriented Language.

Nov 21 '05 #4

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

Similar topics

1
by: Bijay Kumar | last post by:
Hi Guys, I was going through the source code of Object.cs in rotor. What I found is Equals() implemented as follows: public extern virtual bool Equals(Object obj); What I don't...
28
by: Daniel | last post by:
Hello =) I have an object which contains a method that should execute every x ms. I can use setInterval inside the object construct like this - self.setInterval('ObjectName.methodName()',...
9
by: Keith Rowe | last post by:
Hello, I am trying to reference a Shockwave Flash Object on a vb code behind page in an ASP.NET project and I receive the following error: Guid should contain 32 digits with 4 dashes...
11
by: DrUg13 | last post by:
In java, this seems so easy. You need a new object Object test = new Object() gives me exactly what I want. could someone please help me understand the different ways to do the same thing in...
16
by: sneill | last post by:
How is it possible to take the value of a variable (in this case, MODE_CREATE, MODE_UPDATE, etc) and use that as an object property name? In the following example I want 'oIcon' object to have...
0
by: Bijay Kumar | last post by:
Hi Guys, I was going through the source code of Object class (Object.cs in rotor). What I found is Equals() implemented as follows: public extern virtual bool Equals(Object obj); What...
5
by: Matthew | last post by:
I have a nice little Sub that saves data in a class "mySettings" to an XML file. I call it like so: Dim mySettings As mySettings = New mySettings mySettings.value1 = "someText" mySettings.value2...
26
by: yb | last post by:
Hi, Is there a standard for the global 'window' object in browsers? For example, it supports methods such as setInterval and clearInterval, and several others. I know that w3c standardized...
3
by: User1014 | last post by:
A global variable is really just a property of the "Global Object", so what does that make a function defined in the global context? A method of the Global Object? ...
2
by: Ralph | last post by:
Hi I don't understand why it's not working: function schedule(imTop){ this.tdImagesTop = imTop; } schedule.prototype.selectEl = function() { alert(this.tdImagesTop);
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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:
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
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.