Geeks Talk

Prepare for your Next Interview




What is Base class In Vb.net

This is a discussion on What is Base class In Vb.net within the VB.NET forums, part of the Software Development category; HI What is Base class In Vb.net With example?...


Go Back   Geeks Talk > Software Development > VB.NET

Register FAQ Members List Calendar Mark Forums Read
  #1 (permalink)  
Old 09-27-2007
Junior Member
 
Join Date: Jul 2007
Location: Mumbai
Posts: 17
Thanks: 1
Thanked 5 Times in 4 Posts
mahesh9920 is on a distinguished road
What is Base class In Vb.net

HI

What is Base class In Vb.net With example?
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 09-27-2007
Moderator
 
Join Date: Jun 2007
Location: Bangalore,India
Posts: 1,426
Thanks: 8
Thanked 125 Times in 112 Posts
debasisdas will become famous soon enoughdebasisdas will become famous soon enough
Re: What is Base class In Vb.net

Your questions is too vast to explain here. That is beyond the scope of this discussion . Kindly follow a good book or manual on the topic or you can find a lot of related topic by little web searching,
Reply With Quote
  #3 (permalink)  
Old 10-02-2007
Junior Member
 
Join Date: May 2007
Posts: 3
Thanks: 1
Thanked 2 Times in 1 Post
techspirit is on a distinguished road
Re: What is Base class In Vb.net

Courtesy : http://www.startvbdotnet.com/oop/inheritance.aspx

Once a class has been written and tested, it can be used by other programs to suit the program's requirement. This is done by creating a new class from an existing class. 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.
Reply With Quote
The Following 2 Users Say Thank You to techspirit For This Useful Post:
  #4 (permalink)  
Old 10-15-2007
Junior Member
 
Join Date: Oct 2007
Location: bangalore
Posts: 12
Thanks: 0
Thanked 1 Time in 1 Post
gmeena1982 is on a distinguished road
Thumbs up Re: What is Base class In Vb.net

hello mahesh,
you can see the following example:

Quote:
class person
public name as string
public address as string
public city as string
public state as string
public zip as string
end class
Quote:
class employee
public name as string
public address as string
public city as string
public state as string
public salary as integer
end class
Quote:
class employee
inherits person

public salary as integer
end class
Quote:
In the above example, employee is the derived class and person is the base class. Visual basic .net supports only single inheritance, which means that a class can derive from only one base type. However, you can use multiple inheritance if you use interfaces.

Last edited by gmeena1982 : 10-15-2007 at 08:39 AM.
Reply With Quote
Reply

  Geeks Talk > Software Development > VB.NET


Thread Tools
Display Modes


Similar Threads

Thread Thread Starter Forum Replies Last Post
Inherit private members of base class rahul.gupta C and C++ 10 09-24-2008 09:15 AM
base tables and reports in AR GL AP basha.sardar Oracle Apps 0 09-14-2007 04:30 PM
DoyleSoft Knowledge Base JobHelper Geeks Lounge 0 05-08-2007 11:40 AM
Base tables for Journal Import Geek_Guest Oracle Apps 1 03-03-2007 10:31 PM
base line document yagnkan Test Cases 5 02-12-2007 02:50 PM


All times are GMT -4. The time now is 09:34 AM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0
Copyright © 2008 GeekInterview.com. All Rights Reserved