Results 1 to 4 of 4

Thread: What is Base class In Vb.net

  1. #1
    Junior Member
    Join Date
    Jul 2007
    Answers
    15

    What is Base class In Vb.net

    HI

    What is Base class In Vb.net With example?


  2. #2
    Moderator
    Join Date
    Jun 2007
    Answers
    2,074

    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,


  3. #3
    Junior Member
    Join Date
    May 2007
    Answers
    2

    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.


  4. #4
    Junior Member
    Join Date
    Oct 2007
    Answers
    12

    Thumbs up Re: What is Base class In Vb.net

    hello mahesh,
    you can see the following example:

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

    public salary as integer
    end class
    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 07:39 AM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
About us
Applying for a job can be a stressful and frustrating experience, especially for someone who has never done it before. Considering that you are competing for the position with a at least a dozen other applicants, it is imperative that you thoroughly prepare for the job interview, in order to stand a good chance of getting hired. That's where GeekInterview can help.
Interact