Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Calling a base constructor
Message
From
14/07/2005 12:16:01
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
To
14/07/2005 12:00:21
Jim Rieck
Quicken Loans/Rock Financial/Title Sourc
Livonia, Michigan, United States
General information
Forum:
ASP.NET
Category:
Coding, syntax and commands
Environment versions
Environment:
C# 1.1
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
01032692
Message ID:
01032700
Views:
13
>All,
>
> This is a simple one...
>
> I have a parent class and a child class. From the child constructor I want to call the parent's constructor and then do some additional work in the constructor. For all you fox heads this would be like dodefault(). I've tried base.[name of class], but it doesn't appear in the intellisense. How do I do this?

public myClass( [parameterlist] ) : base( [parameterlist] ) {}

ie:
public class myShape(int top,int left,int height,int width):base(top,left) {...}
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Previous
Reply
Map
View

Click here to load this message in the networking platform