Click here to Skip to main content
15,905,781 members
Home / Discussions / C#
   

C#

 
GeneralRe: Deleting read-only files Pin
pankajdaga12-Feb-04 5:48
pankajdaga12-Feb-04 5:48 
GeneralHelp required......... Pin
shkhan11-Feb-04 20:16
shkhan11-Feb-04 20:16 
GeneralRe: Help required......... Pin
John Kuhn11-Feb-04 20:39
John Kuhn11-Feb-04 20:39 
GeneralDeep copy Hashtable Pin
RickardB11-Feb-04 20:15
RickardB11-Feb-04 20:15 
GeneralRe: Deep copy Hashtable Pin
Heath Stewart12-Feb-04 3:43
protectorHeath Stewart12-Feb-04 3:43 
GeneralRe: Deep copy Hashtable Pin
RickardB12-Feb-04 19:06
RickardB12-Feb-04 19:06 
GeneralRe: Deep copy Hashtable Pin
Heath Stewart13-Feb-04 3:31
protectorHeath Stewart13-Feb-04 3:31 
GeneralListing the tables of MS Access (Error is This) Pin
Daminda11-Feb-04 17:14
Daminda11-Feb-04 17:14 
GeneralRe: Listing the tables of MS Access (Error is This) Pin
krisp11-Feb-04 19:34
krisp11-Feb-04 19:34 
GeneralWhile we're on the subject of language constructs Pin
Tom Clement11-Feb-04 16:27
professionalTom Clement11-Feb-04 16:27 
GeneralRe: While we're on the subject of language constructs Pin
krisp11-Feb-04 16:47
krisp11-Feb-04 16:47 
GeneralRe: While we're on the subject of language constructs Pin
Kentamanos11-Feb-04 16:54
Kentamanos11-Feb-04 16:54 
GeneralRe: While we're on the subject of language constructs Pin
Tom Clement11-Feb-04 17:07
professionalTom Clement11-Feb-04 17:07 
GeneralRe: While we're on the subject of language constructs Pin
Werdna13-Feb-04 12:23
Werdna13-Feb-04 12:23 
GeneralStoring RichText data in Access Database Field Pin
bjulien11-Feb-04 15:51
bjulien11-Feb-04 15:51 
GeneralRe: Storing RichText data in Access Database Field Pin
John Kuhn11-Feb-04 16:29
John Kuhn11-Feb-04 16:29 
GeneralRe: Storing RichText data in Access Database Field Pin
Heath Stewart12-Feb-04 3:35
protectorHeath Stewart12-Feb-04 3:35 
GeneralRe: Storing RichText data in Access Database Field Pin
bjulien12-Feb-04 8:03
bjulien12-Feb-04 8:03 
GeneralRe: Storing RichText data in Access Database Field Pin
Heath Stewart12-Feb-04 8:36
protectorHeath Stewart12-Feb-04 8:36 
GeneralRe: Storing RichText data in Access Database Field Pin
bjulien12-Feb-04 10:25
bjulien12-Feb-04 10:25 
GeneralExplicit abstract methods. Pin
krisp11-Feb-04 15:29
krisp11-Feb-04 15:29 
GeneralRe: Explicit abstract methods. Pin
Kentamanos11-Feb-04 15:52
Kentamanos11-Feb-04 15:52 
Few comments...

Classes with abstract methods have to be marked abstract. Think about it. You can't instantiate one because it doesn't know how to implement the abstract method, so the class becomes abstract.

You can never define two functions with the same name that take the same parameters but return different types. This class would never compile (has nothing to do with abstract classes):

<div class="code" style="font-family:Courier New;font-size:10pt;background-color:#FFFFFF;">
  <span style="color:#0000FF;">public class </span><span style="color:#000000;">test<br>
  {<br>
    </span><span style="color:#0000FF;">string </span><span style="color:#000000;">Fred()<br>
    {<br>
      </span><span style="color:#0000FF;">return </span><span style="color:#000000;">"one";<br>
    }<br>
<br>
    </span><span style="color:#0000FF;">int </span><span style="color:#000000;">Fred()<br>
    {<br>
      </span><span style="color:#0000FF;">return </span><span style="color:#000000;">1;<br>
    }<br>
  }<br>
</span>
</div>


You probably know, but the second class should look like this:
<div class="code" style="font-family:Courier New;font-size:10pt;background-color:#FFFFFF;">
  <span style="color:#0000FF;">public class </span><span style="color:#000000;">ChildClass : BaseClass<br>
  {<br>
    </span><span style="color:#0000FF;">private int </span><span style="color:#000000;">_MyInt = 6;<br>
<br>
    </span><span style="color:#0000FF;">protected override string </span><span style="color:#000000;">MyMethod()<br>
    {<br>
      </span><span style="color:#0000FF;">return </span><span style="color:#000000;">_MyInt.ToString();<br>
    }<br>
  } <br>
</span>
</div>


Is there something else I'm missing on this?



I, for one, do not think the problem was that the band was down. I think that the problem may have been that there was a Stonehenge monument on the stage that was in danger of being crushed by a dwarf.

-David St. Hubbins
GeneralRe: Explicit abstract methods. Pin
krisp11-Feb-04 16:21
krisp11-Feb-04 16:21 
GeneralRe: Explicit abstract methods. Pin
Kentamanos11-Feb-04 16:45
Kentamanos11-Feb-04 16:45 
GeneralRe: Explicit abstract methods. Pin
krisp11-Feb-04 17:06
krisp11-Feb-04 17:06 

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.