From: nicol on
hi ;
i have a problem with how i could use [ base( ) ]
and i wrote a program for it but it didn't work

using System;
namespace inheritance_1
{
class Program
{
static void Main(string[] args)
{
employee me = new employee("sara", "me", 1000);
}
}
}
class person
{
protected string first_name;
protected string last_name;
public person(string fn, string ln)
{
first_name = fn;
last_name = ln;
}
public void dissplay_full_name ()
{
Console.WriteLine("her first name :");
Console.WriteLine(first_name);
Console.WriteLine("her last name :");
Console.WriteLine(last_name);
}
}
class employee : person
{
public employee(string fn , string ln , int f):(fn , ln ) // here
has a error
{
{
}
From: Arne Vajhøj on
On 12-06-2010 13:41, nicol wrote:
> class employee : person
> {
> public employee(string fn , string ln , int f):(fn , ln ) // here
> has a error

public employee(string fn , string ln , int f): base(fn , ln )

Arne