Click here to Skip to main content
15,914,165 members
Home / Discussions / C#
   

C#

 
Questionsend parameter to MSWord and then print it Pin
TAREQ F ABUZUHRI10-Aug-06 4:13
TAREQ F ABUZUHRI10-Aug-06 4:13 
AnswerRe: send parameter to MSWord and then print it Pin
TAREQ F ABUZUHRI10-Aug-06 4:18
TAREQ F ABUZUHRI10-Aug-06 4:18 
GeneralRe: send parameter to MSWord and then print it Pin
Khalid Sabtan3-Jul-12 12:05
Khalid Sabtan3-Jul-12 12:05 
QuestionC# Newbie: What is the ":" for?? [modified] Pin
Goalie3510-Aug-06 2:59
Goalie3510-Aug-06 2:59 
AnswerRe: C# Newbie: What is the ":" for?? Pin
V.10-Aug-06 3:15
professionalV.10-Aug-06 3:15 
AnswerRe: C# Newbie: What is the ":" for?? Pin
Roy Heil10-Aug-06 3:17
professionalRoy Heil10-Aug-06 3:17 
AnswerRe: C# Newbie: What is the ":" for?? Pin
Ennis Ray Lynch, Jr.10-Aug-06 4:13
Ennis Ray Lynch, Jr.10-Aug-06 4:13 
AnswerRe: C# Newbie: What is the ":" for?? [modified] Pin
LongRange.Shooter10-Aug-06 7:50
LongRange.Shooter10-Aug-06 7:50 
I would agree with Ennis on getting yourself a book. I would suggest that you may want to splurge on two books:

Get a small book to get a quick overview of C#.
Then a detailed one that goes into everything there is to know.

Once you feel comfortable, get yourself the Design Patterns in C# book as this will become your development bible.

When you do inheritance you can inherit an interface ( public interface ISomething) and you can inherit an abstract class or inheritable class ( public abstract class Something or public class Something).

You can only inherit a single object and that must be the first name in your list after ':'. All others must be interfaces. This is called single inheritance. The benefits of inheritance is that you automatically gain the methods the original class already had written and tested. (which means you may not have to)

If you want to change or add behavior you then override a method and add your own code. Calling base.Method() either in the method signature or in your method is how you execute the code your program is hiding from users of your program. So if you see something like this:

public override bool MyOveridableMethod(string parm, bool state)
   :base(parm,state)
{
}

then the developer wants the base method to execute first before executing his own code. If you see code like this:
public override bool MyOveridableMethod(string parm, bool state)
{
....
}

then the developer wants to control when (or if) the underlying code is executed.

If this description totally loses you, then it is further proof you really need to do some reading. But you will absorb it and in a few months it will all start to sound like common English.


-- modified at 16:33 Thursday 10th August, 2006
GeneralRe: C# Newbie: What is the ":" for?? Pin
Ennis Ray Lynch, Jr.10-Aug-06 8:23
Ennis Ray Lynch, Jr.10-Aug-06 8:23 
JokeRe: C# Newbie: What is the ":" for?? Pin
LongRange.Shooter10-Aug-06 10:34
LongRange.Shooter10-Aug-06 10:34 
Questionclient/server problem Pin
aeliminate10-Aug-06 2:20
aeliminate10-Aug-06 2:20 
AnswerRe: client/server problem Pin
Andrei Ungureanu10-Aug-06 2:37
Andrei Ungureanu10-Aug-06 2:37 
GeneralRe: client/server problem Pin
aeliminate10-Aug-06 3:21
aeliminate10-Aug-06 3:21 
GeneralRe: client/server problem Pin
Andrei Ungureanu10-Aug-06 7:31
Andrei Ungureanu10-Aug-06 7:31 
Questionhow to find the word present in the document Pin
ayyp10-Aug-06 2:08
ayyp10-Aug-06 2:08 
AnswerRe: how to find the word present in the document Pin
Not Active10-Aug-06 3:26
mentorNot Active10-Aug-06 3:26 
GeneralRe: how to find the word present in the document Pin
ayyp10-Aug-06 19:07
ayyp10-Aug-06 19:07 
GeneralRe: how to find the word present in the document Pin
Khalid Sabtan3-Jul-12 12:15
Khalid Sabtan3-Jul-12 12:15 
Questiongracefull exit Pin
Glen Harvy10-Aug-06 1:59
Glen Harvy10-Aug-06 1:59 
AnswerRe: gracefull exit Pin
Not Active10-Aug-06 2:52
mentorNot Active10-Aug-06 2:52 
AnswerRe: gracefull exit Pin
Stefan Troschuetz10-Aug-06 2:54
Stefan Troschuetz10-Aug-06 2:54 
GeneralRe: gracefull exit Pin
Glen Harvy10-Aug-06 12:30
Glen Harvy10-Aug-06 12:30 
GeneralRe: gracefull exit Pin
Stefan Troschuetz10-Aug-06 22:16
Stefan Troschuetz10-Aug-06 22:16 
AnswerRe: gracefull exit Pin
Ennis Ray Lynch, Jr.10-Aug-06 4:15
Ennis Ray Lynch, Jr.10-Aug-06 4:15 
GeneralRe: gracefull exit Pin
Glen Harvy10-Aug-06 12:36
Glen Harvy10-Aug-06 12:36 

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.