Click here to Skip to main content
15,890,609 members
Home / Discussions / C#
   

C#

 
GeneralRe: search button Pin
Wjousts27-Sep-06 5:18
Wjousts27-Sep-06 5:18 
GeneralSend voice on phone line Pin
mehrdadc4827-Sep-06 3:00
mehrdadc4827-Sep-06 3:00 
GeneralRe: Send voice on phone line Pin
Niiiissssshhhhhuuuuu27-Sep-06 3:12
Niiiissssshhhhhuuuuu27-Sep-06 3:12 
QuestionConstructor invocation Pin
kumar.bs27-Sep-06 2:56
kumar.bs27-Sep-06 2:56 
AnswerRe: Constructor invocation Pin
Guffa27-Sep-06 3:08
Guffa27-Sep-06 3:08 
AnswerRe: Constructor invocation Pin
Colin Angus Mackay27-Sep-06 3:08
Colin Angus Mackay27-Sep-06 3:08 
GeneralRe: Constructor invocation Pin
kumar.bs27-Sep-06 4:20
kumar.bs27-Sep-06 4:20 
GeneralRe: Constructor invocation Pin
Colin Angus Mackay27-Sep-06 4:55
Colin Angus Mackay27-Sep-06 4:55 
kumar.bs wrote:
I want to invoke Class B's Default contructor(as well) along with Class A's parametarised constructor, is that possible?


In that situation I create a method called Initialise or some such thing and do something like this:

class B : A
{
    B()
    {
        Initialise();
    }
 
    B(int number, string text) : base(number, text)
    {
        Initialise();
    }
 
    private void Initialise()
    {
        // Do stuff.
    }
}


Also, your code: B(int i,string str) : base (1, "some text") is a bit pointless. What do you do with i and str if you don't do anything with them.


QuestionStored Procedure and c# Pin
kalyanPaladugu27-Sep-06 2:52
kalyanPaladugu27-Sep-06 2:52 
GeneralRe: Stored Procedure and c# Pin
Elina Blank27-Sep-06 4:53
sitebuilderElina Blank27-Sep-06 4:53 
Questionexception Pin
Parshant Verma27-Sep-06 2:46
Parshant Verma27-Sep-06 2:46 
AnswerRe: exception Pin
Not Active27-Sep-06 2:58
mentorNot Active27-Sep-06 2:58 
QuestionRe: exception Pin
Parshant Verma27-Sep-06 3:19
Parshant Verma27-Sep-06 3:19 
AnswerRe: exception Pin
Not Active27-Sep-06 3:28
mentorNot Active27-Sep-06 3:28 
QuestionRe: exception Pin
Parshant Verma27-Sep-06 3:30
Parshant Verma27-Sep-06 3:30 
GeneralRe: exception Pin
Guffa27-Sep-06 3:11
Guffa27-Sep-06 3:11 
GeneralRe: exception Pin
Parshant Verma27-Sep-06 3:22
Parshant Verma27-Sep-06 3:22 
AnswerRe: exception Pin
Guffa27-Sep-06 4:03
Guffa27-Sep-06 4:03 
QuestionRe: exception Pin
Parshant Verma27-Sep-06 4:12
Parshant Verma27-Sep-06 4:12 
AnswerRe: exception Pin
Guffa27-Sep-06 21:35
Guffa27-Sep-06 21:35 
QuestionDropDown problem in combobox Pin
Tavbi27-Sep-06 2:18
Tavbi27-Sep-06 2:18 
QuestionInteraction with Php and MySQL db Pin
Kedar Vijay Kulkarni27-Sep-06 1:53
Kedar Vijay Kulkarni27-Sep-06 1:53 
AnswerRe: Interaction with Php and MySQL db Pin
Not Active27-Sep-06 2:19
mentorNot Active27-Sep-06 2:19 
QuestionRe: Interaction with Php and MySQL db Pin
Kedar Vijay Kulkarni27-Sep-06 2:35
Kedar Vijay Kulkarni27-Sep-06 2:35 
AnswerRe: Interaction with Php and MySQL db Pin
Not Active27-Sep-06 2:43
mentorNot Active27-Sep-06 2: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.