GeekInterview.com
  I am new, Sign me up!
 
GeekInterview.com  >  Interview Questions  >  Microsoft  >  DotNet
Go To First  |  Previous Question  |  Next Question 
 DotNet  |  Question 93 of 165    Print  
Advantages of migrating to VB.NET
Visual Basic .NET has many new and improved language features — such as inheritance, interfaces, and overloading — that make it a powerful object-oriented programming language. As a Visual Basic developer, you can now create multithreaded, scalable applications using explicit multithreading. Other new language features in Visual Basic .NET include structured exception handling, custom attributes, and common language specification (CLS) compliance.
The CLS is a set of rules that standardizes such things as data types and how objects are exposed and interoperate. Visual Basic .NET adds several features that take advantage of the CLS. Any CLS-compliant language can use the classes, objects, and components you create in Visual Basic .NET. And you, as a Visual Basic user, can access classes, components, and objects from other CLS-compliant programming languages without worrying about language-specific differences such as data types. CLS features used by Visual Basic .NET programs include assemblies, namespaces, and attributes.
These are the new features to be stated briefly:
Inheritance
Visual Basic .NET supports inheritance by allowing you to define classes that serve as the basis for derived classes. Derived classes inherit and can extend the properties and methods of the base class. They can also override inherited methods with new implementations. All classes created with Visual Basic .NET are inheritable by default. Because the forms you design are really classes, you can use inheritance to define new forms based on existing ones.
Exception Handling
Visual Basic .NET supports structured exception handling, using an enhanced version of the Try...Catch...Finally syntax supported by other languages such as C++. Structured exception handling combines a modern control structure (similar to Select Case or While) with exceptions, protected blocks of code, and filters. Structured exception handling makes it easy to create and maintain programs with robust, comprehensive error handlers.
Overloading
Overloading is the ability to define properties, methods, or procedures that have the same name but use different data types. Overloaded procedures allow you to provide as many implementations as necessary to handle different kinds of data, while giving the appearance of a single, versatile procedure. Overriding Properties and Methods The Overrides keyword allows derived objects to override characteristics inherited from parent objects. Overridden members have the same arguments as the members inherited from the base class, but different implementations. A member's new implementation can call the original implementation in the parent class by preceding the member name with MyBase.
Constructors and Destructors
Constructors are procedures that control initialization of new instances of a class. Conversely, destructors are methods that free system resources when a class leaves scope or is set to “Nothing”. Visual Basic .NET supports constructors and destructors using the Sub New and Sub Finalize procedures.
Data Types
Visual Basic .NET introduces three new data types. The Char data type is an unsigned 16-bit quantity used to store Unicode characters. It is equivalent to the .NET Framework System. Char data type. The Short data type, a signed 16-bit integer, was named Integer in earlier versions of Visual Basic. The Decimal data type is a 96-bit signed integer scaled by a variable power of 10. In earlier versions of Visual Basic, it was available only within a Variant.
Interfaces
Interfaces describe the properties and methods of classes, but unlike classes, do not provide implementations. The Interface statement allows you to declare interfaces, while the Implements statement lets you write code that puts the items described in the interface into practice.
Delegates
Delegates — objects that can call the methods of objects on your behalf — are sometimes described as type-safe, object-oriented function pointers. You can use delegates to let procedures specify an event handler method that runs when an event occurs. You can also use delegates with multithreaded applications. For details, see Delegates and the AddressOf Operator.
Shared Members
Shared members are properties, procedures, and fields that are shared by all instances of a class. Shared data members are useful when multiple objects need to use information that is common to all. Shared class methods can be used without first creating an object from a class.
References
References allow you to use objects defined in other assemblies. In Visual Basic .NET, references point to assemblies instead of type libraries. For details, see References and the Imports Statement.
Namespaces
Namespaces prevent naming conflicts by organizing classes, interfaces, and methods into hierarchies.
Assemblies
Assemblies replace and extend the capabilities of type libraries by, describing all the required files for a particular component or application. An assembly can contain one or more namespaces.
Attributes
Attributes enable you to provide additional information about program elements. For example, you can use an attribute to specify which methods in a class should be exposed when the class is used as a XML Web service.
Multithreading
Visual Basic .NET allows you to write applications that can perform multiple tasks independently. A task that has the potential of holding up other tasks can execute on a separate thread, a process known as multithreading. By causing complicated tasks to run on threads that are separate from your user interface, multithreading makes your applications more responsive to user input.



  
Total Answers and Comments: 1 Last Update: January 12, 2006   
  
 Sponsored Links

 
 Best Rated Answer

No best answer available. Please pick the good answer available or submit your answer.
January 12, 2006 06:56:51   #1  
samiksc Member Since: October 2005   Contribution: 233    

RE: Advantages of migrating to VB.NET

Migrating from VB to VB.Net implies following advantages --

  1. High level OOPs features like inheritance polymorphism and delegates become available.
  2. Also available are features like namespaces interfaces assemblies and attributes.
  3. Migrating to ADO.Net implies improvements in scalability because ADO.Net objects are represented using XML as opposed to ADO objects which are represented as COM objects. XML objects are lightweight than COM counterparts.
  4. Migrating to ADO.Net also means use of facilities like creating a dataset from two or more data sources.
  5. .Net security features are available to VB.Net applications.
  6. .Net memory management and common type system allow integration of VB.Net assemblies with other .net applications.

 
Is this answer useful? Yes | No

 Related Questions

1. First of all, VB.NET provides managed code execution that runs under the Common Language Runtime (CLR), resulting in robust, stable and secure applications. All features of the .NET framework are 
Latest Answer : VB.Net offers following advantages --OOPs features like inheritance and polymorphismInterfaces, namespaces, delegates.Net security featuresScalability due to ADO.Net (ADO.Net objects are represented using XML which is scalable)Facility to create a dataset ...

Visual Basic .NET has many new and improved language features — such as inheritance, interfaces, and overloading — that make it a powerful object-oriented programming language. As a Visual 
Latest Answer : Migrating from VB to VB.Net implies following advantages --High level OOPs features like inheritance, polymorphism and delegates become available.Also available are features like namespaces, interfaces, assemblies and attributes.Migrating to ADO.Net ...


 Sponsored Links

 
Related Articles

The Interview Snafu

How to turn someone else’s mistake to your advantage Your dream job is about to become reality. A recruiter gave you the heads up about the perfect position at Humungous Conglomerate, Inc. You went through five interviews as well as a battery of psychological tests mandated by their HR de
 

Winning a Job Interview with a Winning Resume

Does your resume unlock your potential, take your skills to the highest level and win you the interview and the job you want now? The job market today is highly competitive and even if you think you have what it takes to get an interview you won’t get over the line without a polished, prof
 

Advantages of Using Oracle

Oracle has many advantages and features that makes it popular and thereby makes it as the largest enterprise software company. Oracle comes with new versions with new features implemented in new version while the features of earlier versions still being maintained. One important aspect is Oracle da
 

Advantages of Using SAP R/3 in comparison with other Similar Tools

ERP system takes a lead role because of some of the following reasons: Many large corporations use several different and separate information systems, often because they have merged with and/or acquired other companies with varied systems. An ERP system integrates these separate information systems
 

Advantages of Using VoiceXML In Comparison To Similar Tools

Another powerful advantage of VoiceXML is the ability for the system to re-use certain Internet structures. The vast majority of companies today use either one of two infrastructures, and these are the IVR infrastructure or the web based infrastructure. VoiceXML is powerful because it will allow
 

SOA Advantages

SOA Advantages Businesses in today’ s competitive environment are constantly faced with the challenge of having to provide more with fewer resources Businesses are constantly under pressure to deliver goods and services to the market at a faster cheaper rate and at higher quality than in
 

XML Advantages

XML Advantages There are many advantages to using XML for information exchange and they offer many benefits to the user The Extensive Markup Language uses human language which is conversable and not the language used by computers which is binary and ASCII coded XML is readable by even people who hav
 

Importance of Proper English during Job Interview

Importance of Proper English during Job Interview Your job interview is crucially important and it will determine whether or not you will get the job Depending on the type of job you re going for it is very important for you to use proper English In most cases jobs which offer higher salaries will h
 

Advantages and Disadvantages of Web 2.0

The Advantages and Disadvantages of Web 2 0 While Web 2 0 has become a popular term these days few people have taken the time to weigh the pros and cons of these evolutionary change While the advantages are heavily touted by those who are proponents of Web 2 0 there are also those who feel that this
 

Advantages and Disadvantages of Ajax

Advantages and Disadvantages of Ajax While there are a number of advantages to using Ajax there are also some disadvantages as well One of the main reasons why people support it is the interface Those who use pages with Ajax will find that they operate more like an application rather than a standalo
 

About Us -  Privacy Policy -  Terms and Conditions -  Contact -  Ask Question -  Propose Category -  Site Updates 

Copyright © 2005 - 2009 GeekInterview.com. All Rights Reserved

Page copy protected against web site content infringement by Copyscape