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

  
Total Answers and Comments: 2 Last Update: July 20, 2005   
  
 Sponsored Links

 
 Best Rated Answer

No best answer available. Please pick the good answer available or submit your answer.
May 31, 2005 02:01:15   #1  
Sunitha        

RE: How would you implement inheritance using VB.NET/C#?
By using inherits keyword v can implement inheritance
and only single level multiple level and hybrid inheritance is supported in vb.net

 
Is this answer useful? Yes | No
July 20, 2005 22:58:30   #2  
Iyyappan        

RE: How would you implement inheritance using VB.NET/C#?
There are two types are inheritence.
1) Multiple Inheritence.
2) Multilevel Inheritence.

.NET Supports only Multilevel Inheritence.

Ex:

Public Class ParentClass
Public Overridable Sub OIverridingMethods()
Messagebox.Show ( Message From ParentClass )
End Sub
End Class

Public Class ChildClass Inherits ParentClass
Public overrides Sub OverridingMethods()
MessageBox.Show ( Message From ChildClass )
End sub
End Class.


 
Is this answer useful? Yes | No

 Related Questions

Latest Answer : There are two types are inheritence. 1) Multiple Inheritence. 2) Multilevel Inheritence.  .NET Supports only Multilevel Inheritence.   Ex:  Public Class ParentClass  Public Overridable Sub OIverridingMethods()  ...

Latest Answer : When we set out to implement a class using inheritance, we must first start with an existing class from which we will derive our new subclass. This existing class, or base class, may be part of the .NET system class library framework, it may be part of ...

Latest Answer : Inheritance means able to inherete the class from base class. The inherete class called derived class.The main advantage of the inheritance if any modification done origanl class safe.This is for reusable. ...

Latest Answer : The process of deriving a new class from an existing class is called Inheritance.   The old class is called the base class and the new class is called derived class.  The derived class inherits some or everything of the base class.  In ...

A web farm is a multi-server scenario. So we may have a server in each state of US. If the load on one server is in excess then the other servers step in to bear the brunt. How they bear it is based 
Latest Answer : There is two or more than two server in webfarm method, and we also have a router in this technique, which is basically is used to route the a particular incoming  request .Where as in case of a webgarden we have a one server having more than one processor.There ...

ASP.NET implements authentication using authentication providers, which are code modules that verify credentials and implement other security functionality such as cookie generation. ASP.NET supports 
Latest Answer : One more authentication is called Client Certifiaction Authentication. ...

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 ...

Choosing a programming language depends on your language experience and the scope of the application you are building. While small applications are often created using only one language, it is not 
Latest Answer : The points of difference are as follows:VB.Net does not allow use of unmanaged code, while C# allows the same.C# performance is slightly better than that of VB.Net parallel code.C# supports XML documentation, but VB.Net does not.Operator overloading supported ...

Latest Answer : Remember -> This is not recommended. Since the same-name method exists in both the base class and the derived class, with actions in both; therefore at runtime, any of these methods can be called by compiler, it's not in your control. Hence, if the ...
Read Answers (3) | Asked by : Gopal


 Sponsored Links

 
Related Articles

Microsoft AJAX Library - Inheritance using Prototypes

Inheritance using Prototypes Once again prototyping can help us implement an OOP feature in a more elegant way than when using closures Prototype based inheritance makes use of the behavior of JavaScript prototypes When accessing a member of a function that member will be looked for in the function
 

Microsoft AJAX Library - Inheritance using Closures

Inheritance using Closures and Prototypes There are two significant techniques for implementing the OOP concept of inheritance with JavaScript code The first technique uses closures and the other technique makes use of a feature of the language named prototyping Early implementations of the Microsof
 

C++ Inheritance

C Inheritance Introduction What is Inheritance Inheritance is the process by which new classes called derived classes are created from existing classes called base classes The derived classes have all the features of the base class and the programmer can choose to add new features specific to the ne
 

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
 

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
 

HR Interview - HR Interview Mistakes You Will Want To Avoid

HR Interview Mistakes You Will Want To Avoid The job interview can be a stressful process This is especially true for those who are going after a competitive position Your nonverbal communication combined with the answers you give during the interview will determine if you are hired mosgoogle While
 

HR Interview - Behavioral HR Interviews

Behavioral HR Interviews As the name implies a behavioral interview is an interview that is held by a human resources department to determine if an applicant has the behaviors that are appropriate for a job The company must know how an applicant will behave in a certain situations mosgoogle The logi
 

HR Interview - How To Prepare For Your HR Interview

How To Prepare For Your HR Interview Before you begin thinking about how you are going to dress for the interview it is important to do your research first You should learn everything you can about the company you wish to work for When you have detailed information about your employer you will conve
 

HR Interview - Telephone Interview Etiquette

Telephone Interview Etiquette When you conduct a telephone interview for a job it is important to show the proper etiquette Not only is it important it is critical is you wish to be hired by the company There are a number of things you will want to do and other things should never be done mosgoogle
 

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