Click here to Skip to main content
15,908,020 members
Home / Discussions / C#
   

C#

 
GeneralRe: pdf 2 txt Pin
Heath Stewart5-Feb-04 6:07
protectorHeath Stewart5-Feb-04 6:07 
GeneralRe: pdf 2 txt Pin
Daniel Turini5-Feb-04 8:56
Daniel Turini5-Feb-04 8:56 
GeneralRe: Challenge: Generating Signed Serial Numbers Pin
Heath Stewart5-Feb-04 5:40
protectorHeath Stewart5-Feb-04 5:40 
GeneralRe: Challenge: Generating Signed Serial Numbers Pin
Heath Stewart5-Feb-04 8:39
protectorHeath Stewart5-Feb-04 8:39 
GeneralRe: Challenge: Generating Signed Serial Numbers Pin
Heath Stewart5-Feb-04 11:24
protectorHeath Stewart5-Feb-04 11:24 
GeneralRe: Challenge: Generating Signed Serial Numbers Pin
Heath Stewart6-Feb-04 1:16
protectorHeath Stewart6-Feb-04 1:16 
QuestionHow to implement "Open With Dialog Box" in .NET Pin
Shailaja5-Feb-04 3:08
Shailaja5-Feb-04 3:08 
AnswerRe: How to implement "Open With Dialog Box" in .NET Pin
Heath Stewart5-Feb-04 5:53
protectorHeath Stewart5-Feb-04 5:53 
Generalfull screen maximize Pin
Blue_Aqua5-Feb-04 2:58
Blue_Aqua5-Feb-04 2:58 
GeneralRe: full screen maximize Pin
occcy5-Feb-04 4:41
occcy5-Feb-04 4:41 
GeneralRe: full screen maximize Pin
Blue_Aqua5-Feb-04 17:27
Blue_Aqua5-Feb-04 17:27 
GeneralPointers to Interfaces for COM Pin
Tristan Rhodes5-Feb-04 2:24
Tristan Rhodes5-Feb-04 2:24 
GeneralProblem 2 Pin
Tristan Rhodes5-Feb-04 2:32
Tristan Rhodes5-Feb-04 2:32 
GeneralRe: Problem 2 Pin
Heath Stewart5-Feb-04 5:14
protectorHeath Stewart5-Feb-04 5:14 
GeneralRe: Problem 2 Pin
Tristan Rhodes5-Feb-04 5:33
Tristan Rhodes5-Feb-04 5:33 
GeneralRe: Problem 2 Pin
Heath Stewart5-Feb-04 6:53
protectorHeath Stewart5-Feb-04 6:53 
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 

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.