Sorry it's C# (not VB), but is this what you mean?
Both constructors are called.

- Ray

using System;

namespace ConsoleApplication
{
 class Application
 {
  public class baseClass
  {
   public baseClass()
   {
    Console.WriteLine("base class constructor called");
   }
  }

public class derivedClass :  baseClass
{
   public derivedClass()
   {
    Console.WriteLine("derived class constructor called");
   }
  }

  [STAThread]
  static void Main(string[] args)
  {
   derivedClass dc = new derivedClass();
  }
 }
}



On Tue, 23 Apr 2002 14:06:07 -0500, franklin gray
<[EMAIL PROTECTED]> wrote:

>If I inherit an object that has a new sub and I don't create a new sub to
call mybase.new, does it get called anyway?
>
>You can read messages from the DOTNET archive, unsubscribe from DOTNET, or
>subscribe to other DevelopMentor lists at http://discuss.develop.com.

You can read messages from the DOTNET archive, unsubscribe from DOTNET, or
subscribe to other DevelopMentor lists at http://discuss.develop.com.

Reply via email to