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 classclass employee
public name as string
public address as string
public city as string
public state as string
public salary as integer
end classclass employee
inherits person
public salary as integer
end classIn 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.





Reply With Quote