Click here to Skip to main content
15,891,136 members
Home / Discussions / C#
   

C#

 
GeneralRe: Problem with loading tiff-picture to Visual C# Project! Pin
The Cake of Deceit29-Aug-08 3:36
The Cake of Deceit29-Aug-08 3:36 
QuestionRetrieving Oracle servers but cannot get host name Pin
Antony Lyell28-Aug-08 4:34
Antony Lyell28-Aug-08 4:34 
AnswerRe: Retrieving Oracle servers but cannot get host name Pin
Wendelius28-Aug-08 7:57
mentorWendelius28-Aug-08 7:57 
GeneralRe: Retrieving Oracle servers but cannot get host name Pin
Antony Lyell28-Aug-08 21:56
Antony Lyell28-Aug-08 21:56 
GeneralRe: Retrieving Oracle servers but cannot get host name Pin
Wendelius29-Aug-08 7:00
mentorWendelius29-Aug-08 7:00 
QuestionInheritance and constructors Pin
Dewald28-Aug-08 4:22
Dewald28-Aug-08 4:22 
AnswerRe: Inheritance and constructors Pin
netJP12L28-Aug-08 4:35
netJP12L28-Aug-08 4:35 
GeneralRe: Inheritance and constructors Pin
Dewald29-Aug-08 3:11
Dewald29-Aug-08 3:11 
Are you sure about that second case? As far as I understand (and can reproduce), if you instantiate ClassB cb = new ClassB(2) it calls the default constructor of ClassA first and then the overloaded constructor of ClassB. It never calls the overloaded constructor of ClassA as you say.

This is of course if you don't specify for the constructors whether they should be calling other constructors. If I wanted the overloaded constructor of ClassB to first call the overloaded constructor of ClassA as opposed to the default constructor of ClassA, I would have had to specify it as:
public ClassB(int i) : base(i)
{
   //some code
}


Am I missing something?
AnswerRe: Inheritance and constructors Pin
Pete O'Hanlon28-Aug-08 4:36
mvePete O'Hanlon28-Aug-08 4:36 
GeneralRe: Inheritance and constructors Pin
N a v a n e e t h28-Aug-08 5:21
N a v a n e e t h28-Aug-08 5:21 
GeneralRe: Inheritance and constructors Pin
Dewald29-Aug-08 3:26
Dewald29-Aug-08 3:26 
AnswerRe: Inheritance and constructors Pin
Frank Horn28-Aug-08 4:39
Frank Horn28-Aug-08 4:39 
GeneralRe: Inheritance and constructors Pin
Dewald29-Aug-08 3:31
Dewald29-Aug-08 3:31 
AnswerRe: Inheritance and constructors Pin
laserbaronen28-Aug-08 4:42
laserbaronen28-Aug-08 4:42 
GeneralRe: Inheritance and constructors Pin
Dewald29-Aug-08 3:31
Dewald29-Aug-08 3:31 
Question[Message Deleted] Pin
hadad28-Aug-08 4:16
hadad28-Aug-08 4:16 
AnswerRe: BinnaryWriter Class Pin
led mike28-Aug-08 5:05
led mike28-Aug-08 5:05 
GeneralRe: BinnaryWriter Class Pin
Mark Salsbery28-Aug-08 6:29
Mark Salsbery28-Aug-08 6:29 
GeneralRe: BinnaryWriter Class Pin
led mike28-Aug-08 6:42
led mike28-Aug-08 6:42 
GeneralRe: BinnaryWriter Class Pin
lisan_al_ghaib28-Aug-08 22:10
lisan_al_ghaib28-Aug-08 22:10 
GeneralRe: BinnaryWriter Class Pin
Mark Salsbery29-Aug-08 5:18
Mark Salsbery29-Aug-08 5:18 
JokeRe: BinnaryWriter Class Pin
lisan_al_ghaib29-Aug-08 5:22
lisan_al_ghaib29-Aug-08 5:22 
GeneralRe: BinnaryWriter Class Pin
Pete O'Hanlon28-Aug-08 8:13
mvePete O'Hanlon28-Aug-08 8:13 
GeneralRe: BinnaryWriter Class Pin
led mike28-Aug-08 8:16
led mike28-Aug-08 8:16 
GeneralRe: BinnaryWriter Class Pin
Pete O'Hanlon28-Aug-08 8:42
mvePete O'Hanlon28-Aug-08 8:42 

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.