Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Calling a base constructor
Message
De
14/07/2005 12:16:01
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
 
À
14/07/2005 12:00:21
Jim Rieck
Quicken Loans/Rock Financial/Title Sourc
Livonia, Michigan, États-Unis
Information générale
Forum:
ASP.NET
Catégorie:
Code, syntaxe and commandes
Versions des environnements
Environment:
C# 1.1
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
MS SQL Server
Divers
Thread ID:
01032692
Message ID:
01032700
Vues:
11
>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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform