Results 1 to 4 of 4

Thread: Invoking Base Class Constructor [Resolved]

Threaded View

  1. #1

    Thread Starter
    Addicted Member Kezmondo's Avatar
    Join Date
    Oct 2001
    Location
    England
    Posts
    166

    Invoking Base Class Constructor [Resolved]

    I'm very new to C# and have a quick question...

    When a class is derived from a base class, is the base class constructor always invoked when an instance of the derived class is created, regardless of whether ": base()" is added to the derived class constructor?


    e.g I have a "Control" class, and a "Listbox" class which dervies from it.
    When I create an instance of "Listbox", is the "Control" constructor always invoked?

    Thanks...
    Last edited by Kezmondo; Sep 5th, 2005 at 05: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
  •  



Click Here to Expand Forum to Full Width