GeekInterview.com
  I am new, Sign me up!
 
GeekInterview.com  >  Interview Questions  >  Microsoft  >  VB.NET
Go To First  |  Previous Question  |  Next Question 
 VB.NET  |  Question 26 of 60    Print  
How would you implement inheritance using VB.NET ?

  
Total Answers and Comments: 6 Last Update: September 12, 2008     Asked by: NithyaSurendran 
  
 Sponsored Links

 
 Best Rated Answer

No best answer available. Please pick the good answer available or submit your answer.
November 02, 2006 06:43:32   #1  
Jagtar        

RE: How would you implement inheritance using VB.NET ?...
Make a class and also make one more class and 2nd class will implements the first class. It is very simple concepts of inheritance. It has also many other logics.
 
Is this answer useful? Yes | No
November 29, 2006 23:19:44   #2  
Suma        

RE: How would you implement inheritance using VB.NET ?...
Inheritance is the ability of a class to derive its characeristics from an existing class.
 
Is this answer useful? Yes | No
December 18, 2006 12:24:28   #3  
suneetha        

RE: How would you implement inheritance using VB.NET ?...
Using VB.NET we can create a class that provides basic functionality so that other classes can inherit its members. VB.NET provides the 'Inherits' keyword to implement inheritance. By using the keyword 'Inherits' we can inherit the characteristics of a class into another class.
 
Is this answer useful? Yes | No
March 12, 2007 03:27:29   #4  
salahuddin        

RE: How would you implement inheritance using VB.NET ?...
Thanks suneeta for ur answer.. it really helped me... Inherits is the key word to inhert one class into another class of vb.net
 
Is this answer useful? Yes | No
September 12, 2008 20:49:36   #5  
mallikasachi Member Since: February 2008   Contribution: 3    

RE: How would you implement inheritance using VB.NET ?
The keyword used is Inherits e. g Class b inherits class A
 
Is this answer useful? Yes | No
September 12, 2008 20:53:04   #6  
mallikasachi Member Since: February 2008   Contribution: 3    

RE: How would you implement inheritance using VB.NET ?
Key word for inheritance used inherits

example
Class Parent

Public i As Integer 5

Public Overridable Sub MyMethod()

Console.WriteLine("I am Parent's MyMethod()")

End Sub

End ClassClass

Child

Inherits Parent

Public Overrides Sub MyMethod()

Console.WriteLine("I am Child's MyMethod()")

End Sub

End Class


 
Is this answer useful? Yes | No


 
Go To Top


 Sponsored Links

 
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