Set - 6

Question 1 :

re-clarification of object based?

Answer :

VB6 DOES support polymorphism and interface inheritance. It also supports the "Implements" keyword. What is not supported in vb6 is implementation inheritance.
Also, from above, vb6 DOES "provides access to third-party controls like COM, DCOM " That is not anything new in .NET.

Question 2 :

How to achieve Polymorphism in VB.Net?

Answer :

We can achieve polymarphism in .Net i.e Compile time polymarphism and Runtime polymarphism. Compiletime Polymarphism achieved by method overloading. Runtime polymarphism achieved by Early Binding or Late Binding. Provide the function pointer to the object at compile time called as Early Binding.
provide the function pointer to the object at runtime called as Late Binding
class emp having the method display()
class dept having the method display()

create objects as in the main function
// Early binding
dim obj as new emp
dim ob as new dept

obj.display()-to call the display method of emp class
ob.display-to call the display method of the dept class
// Late binding

create object in the main class as
object obj
obj=new emp
obj.display()-to call the display of emp class
obj=new dept
obj.display()-to call the display of dept class

Question 3 :

Difference between Class And Interface

Answer :

Class is logical representation of object. It is collection of data and related sub procedures with defination.
Interface is also a class containg methods which is not having any definations.
Class does not support multiple inheritance. But interface can support.

Question 4 :

What doesu mean by .NET framework?

Answer :

The .NET Framework is an environment for building, deploying, and running Web Services and other applications. It consists of three main parts: the Common Language Runtime, the Framework classes, and ASP.NET

Question 5 :

What is assembly?

Answer :

It is a single deployable unit that contains all the information abt the implimentation of classes , stuctures and interfaces