Results 1 to 4 of 4

Thread: What is Base class In Vb.net

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #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