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.