Click here to Skip to main content
15,917,177 members
Home / Discussions / C#
   

C#

 
GeneralRe: search button Pin
Eric Dahlvang27-Sep-06 9:19
Eric Dahlvang27-Sep-06 9:19 
GeneralRe: search button Pin
faladrim27-Sep-06 20:27
faladrim27-Sep-06 20:27 
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 
kumar.bs wrote:
How can we invoke subclass(derive class) default constructor and base class parametarized constructor at a time from derive class parametarized constructor, Is there any way?


I don't think I understand your question. You want to invoke the base constructor from the derived constructor. The base constructor has values, the derived is the default (parameterless) constructor. I'm with you so far. But I don't understand "at a time from derive class parametarized constructor".

class A
{
    A(int number, string text)
    {
        // Do stuff
    }
}
 
class B : A
{
    B() : base (1, "some text")
    {
        // Do stuff
    }
}
 
B b = new B();



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 
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 

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.