Click here to Skip to main content
15,887,267 members
Home / Discussions / C#
   

C#

 
GeneralRe: Problem 2 Pin
Tristan Rhodes5-Feb-04 7:13
Tristan Rhodes5-Feb-04 7:13 
GeneralInt / UInt in flag issue Pin
Tristan Rhodes5-Feb-04 1:54
Tristan Rhodes5-Feb-04 1:54 
GeneralRe: Int / UInt in flag issue Pin
Colin Angus Mackay5-Feb-04 1:56
Colin Angus Mackay5-Feb-04 1:56 
GeneralRe: Int / UInt in flag issue Pin
Tristan Rhodes5-Feb-04 2:20
Tristan Rhodes5-Feb-04 2:20 
GeneralRe: Int / UInt in flag issue Pin
Heath Stewart5-Feb-04 5:05
protectorHeath Stewart5-Feb-04 5:05 
GeneralProblem with class inheritance Pin
Andres Coder5-Feb-04 1:34
Andres Coder5-Feb-04 1:34 
GeneralRe: Problem with class inheritance Pin
Corinna John5-Feb-04 1:50
Corinna John5-Feb-04 1:50 
GeneralRe: Problem with class inheritance Pin
Colin Angus Mackay5-Feb-04 1:55
Colin Angus Mackay5-Feb-04 1:55 
Your TestClass has no constructor, so the framework makes a default one for you. It has to call the base contructor. The BasicClass has no default constructor because you defined a constructor with an argument.

Some suggestions:
public class TestClass: BasicClass
{
    // Create a default constructor that explicitly
    // calls the existing base
    public TestClass() : base("")
    {
    }
    public override void TestMethod(...)
    {
      ...   
    }
}


or
abstract public class BasicClass
{
   public string name;

   // Create a default constructor in the base class.
   public BasicClass()
   {
      this.name = "";
   }

   public BasicClass(string name)
   {
      this.name = name;
   }
   abstract public void TestMethod(...);
}



--Colin Mackay--

EuroCPian Spring 2004 Get Together[^]
"You can have everything in life you want if you will just help enough other people get what they want." --Zig Ziglar


GeneralCOM interop reference problem Pin
vladll4-Feb-04 23:33
vladll4-Feb-04 23:33 
GeneralRe: COM interop reference problem Pin
Heath Stewart5-Feb-04 4:52
protectorHeath Stewart5-Feb-04 4:52 
GeneralRe: COM interop reference problem Pin
vladll5-Feb-04 5:38
vladll5-Feb-04 5:38 
GeneralRe: COM interop reference problem Pin
Heath Stewart5-Feb-04 6:58
protectorHeath Stewart5-Feb-04 6:58 
GeneralRe: COM interop reference problem Pin
vladll5-Feb-04 7:06
vladll5-Feb-04 7:06 
GeneralRe: COM interop reference problem Pin
Heath Stewart5-Feb-04 8:58
protectorHeath Stewart5-Feb-04 8:58 
GeneralSelecting buttons Pin
Megastoffel4-Feb-04 23:30
Megastoffel4-Feb-04 23:30 
GeneralRe: Selecting buttons Pin
Member 2611885-Feb-04 0:11
Member 2611885-Feb-04 0:11 
GeneralRe: Selecting buttons Pin
Megastoffel5-Feb-04 7:38
Megastoffel5-Feb-04 7:38 
GeneralPrintPreviewDialog Pin
Reinier van de Wetering4-Feb-04 22:25
Reinier van de Wetering4-Feb-04 22:25 
Generalconversion to pdf Pin
mohdshiraz4-Feb-04 19:11
mohdshiraz4-Feb-04 19:11 
GeneralRe: conversion to pdf Pin
John Kuhn4-Feb-04 19:37
John Kuhn4-Feb-04 19:37 
GeneralRe: conversion to pdf Pin
mohdshiraz4-Feb-04 19:46
mohdshiraz4-Feb-04 19:46 
GeneralRe: conversion to pdf Pin
John Kuhn4-Feb-04 19:56
John Kuhn4-Feb-04 19:56 
GeneralRe: conversion to pdf Pin
Gerald Leslie Jones4-Feb-04 20:05
Gerald Leslie Jones4-Feb-04 20:05 
GeneralRe: conversion to pdf Pin
Heath Stewart5-Feb-04 4:45
protectorHeath Stewart5-Feb-04 4:45 
GeneralRe: conversion to pdf Pin
mohdshiraz5-Feb-04 0:43
mohdshiraz5-Feb-04 0:43 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.