GeekInterview.com
  I am new, Sign me up!
 
GeekInterview.com  >  Interview Questions  >  Microsoft  >  DotNet
Go To First  |  Previous Question  |  Next Question 
 DotNet  |  Question 31 of 165    Print  
Can you explain what inheritance is and an example of when you might use it?

  
Total Answers and Comments: 1 Last Update: July 31, 2005   
  
 Sponsored Links

 
 Best Rated Answer

No best answer available. Please pick the good answer available or submit your answer.
July 31, 2005 06:25:53   #1  
vvbabu        

RE: Can you explain what inheritance is and an example of when you might use it?
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 Visual Basic we use the Inherits keyword to inherit one class from other.


Ex:

Public Class Base
---
---
End Class

Public Class Derived
Inherits Base
---
---
End Class

 
Is this answer useful? Yes | No

 Related Questions

Latest Answer : Server-side code: 1. Code is written in VB, C# or other compiled languages. 2. Code is executed by the server during a roundtrip in response to a user request or action. 3. The server executes server side code and returns HTML code to the client ...

Latest Answer : In ADO, the in-memory representation of data is the recordset. In ADO.NET, it is the dataset. There are important differences between them. A recordset looks like a single table. If a recordset is to contain data from multiple database tables, ...

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 : Diffgram is the XML format which is used to identify the current and orginal version. ...

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

Latest Answer : Code-Behind:  Code-behind refers to code for your ASP.NET page that is contained within a separate class file. This allows a clean separation of Our HTML from presentation logic.   In-Line Code : In-line code is code that is embedded ...

Latest Answer : There are following types of validation controls provided by ASP.Net:RequiredFieldValidatorCompareValidatorRangeValidatorRegularExpressionValidatorCustomValidatorThese controls are server side controls. However in up-level browsers that is IE 4.0 and ...

Briefly explain what user controls are and what server controls are and the differences between the two.


 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
 

Explain about TNSPING

You can also use tnsping utility on command prompt to check Oracle Net connectivity. Follow these steps to check the connection to particular SID. Open Command prompt. Write tnsping < SID for the database connectivity you want to check > If you get the message “Used TNSNAMES
 

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
 

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