Click here to Skip to main content
16,007,885 members
Home / Discussions / C#
   

C#

 
AnswerRe: Plug-in based development… and docking windows ala Visual Studio 2005 Pin
Robert Rohde28-Apr-06 23:43
Robert Rohde28-Apr-06 23:43 
GeneralRe: Plug-in based development… and docking windows ala Visual Studio 2005 Pin
anderslundsgard3-May-06 4:09
anderslundsgard3-May-06 4:09 
QuestionRemoving components from controls Pin
valiovalio28-Apr-06 23:03
valiovalio28-Apr-06 23:03 
AnswerRe: Removing components from controls Pin
Robert Rohde28-Apr-06 23:37
Robert Rohde28-Apr-06 23:37 
GeneralRe: Removing components from controls Pin
valiovalio28-Apr-06 23:46
valiovalio28-Apr-06 23:46 
Questionhow to embed flash in asp.net Pin
pujareddy28-Apr-06 20:46
pujareddy28-Apr-06 20:46 
QuestionQuestion about creating a class Pin
augie021628-Apr-06 18:52
augie021628-Apr-06 18:52 
AnswerRe: Question about creating a class Pin
Colin Angus Mackay28-Apr-06 21:46
Colin Angus Mackay28-Apr-06 21:46 
augie0216 wrote:
a commissions rate field required by the class constructor


Do you mean that the class constructor takes this in as a parameter?

If so, try something like this:
public class AutoSalesperson
{
    private double totalValueNum = 0;
    private double commissionEarnedNum = 0;
    private double commissionRateNum;

    public AutoSalesperson(double commissionRateNum)
    {
        this.commissionRateNum = commissionRateNum;
    }
}

Note: It is generally good practice to use camelCaseVariableNames (first char is lower case) for private fields of a class, local variables, and parameters.

Does this help?


"On two occasions, I have been asked [by members of Parliament], 'Pray, Mr. Babbage, if you put into the machine wrong figures, will the right answers come out?' I am not able to rightly apprehend the kind of confusion of ideas that could provoke such a question."
--Charles Babbage (1791-1871)

My: Website | Blog
Questionread DWORD registry Pin
picasso228-Apr-06 18:33
picasso228-Apr-06 18:33 
QuestionHow can I retrieve conversation text from Yahoo Messenger by API Pin
WindOpen28-Apr-06 18:24
WindOpen28-Apr-06 18:24 
QuestionDevelopeing SharePoint web parts problem Pin
dratcha28-Apr-06 17:25
dratcha28-Apr-06 17:25 
AnswerRe: Developeing SharePoint web parts problem Pin
dratcha1-May-06 12:07
dratcha1-May-06 12:07 
QuestionmciSendString working only on main Thread? Pin
mikker_12328-Apr-06 16:14
mikker_12328-Apr-06 16:14 
QuestionAudio conversation via network - problem! Pin
eyej28-Apr-06 14:40
eyej28-Apr-06 14:40 
AnswerRe: Audio conversation via network - problem! Pin
mikker_12328-Apr-06 15:13
mikker_12328-Apr-06 15:13 
GeneralRe: Audio conversation via network - problem! Pin
eyej29-Apr-06 3:11
eyej29-Apr-06 3:11 
GeneralRe: Audio conversation via network - problem! Pin
mikker_12329-Apr-06 6:54
mikker_12329-Apr-06 6:54 
GeneralRe: Audio conversation via network - problem! Pin
eyej29-Apr-06 13:28
eyej29-Apr-06 13:28 
GeneralRe: Audio conversation via network - problem! Pin
mikker_12330-Apr-06 6:25
mikker_12330-Apr-06 6:25 
GeneralRe: Audio conversation via network - problem! Pin
eyej1-May-06 6:48
eyej1-May-06 6:48 
GeneralRe: Audio conversation via network - problem! Pin
DandyRUR10-Nov-06 6:18
DandyRUR10-Nov-06 6:18 
QuestionPage Setup Dialog & Margins Pin
Graham Dean28-Apr-06 12:39
Graham Dean28-Apr-06 12:39 
AnswerRe: Page Setup Dialog & Margins Pin
Robert Rohde28-Apr-06 22:23
Robert Rohde28-Apr-06 22:23 
GeneralRe: Page Setup Dialog & Margins Pin
Graham Dean29-Apr-06 0:39
Graham Dean29-Apr-06 0:39 
QuestionC# and MS Access parameter passing Pin
achrafus28-Apr-06 11:37
achrafus28-Apr-06 11:37 

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.