Click here to Skip to main content
15,892,480 members
Home / Discussions / C#
   

C#

 
AnswerRe: Aforge.net Pin
Manas Bhardwaj28-May-09 4:17
professionalManas Bhardwaj28-May-09 4:17 
GeneralRe: Aforge.net Pin
Michael Bookatz28-May-09 4:32
Michael Bookatz28-May-09 4:32 
QuestionWindowsService Clarification Pin
MumbleB28-May-09 2:45
MumbleB28-May-09 2:45 
AnswerRe: WindowsService Clarification Pin
PIEBALDconsult28-May-09 3:06
mvePIEBALDconsult28-May-09 3:06 
GeneralRe: WindowsService Clarification Pin
MumbleB28-May-09 3:10
MumbleB28-May-09 3:10 
GeneralRe: WindowsService Clarification Pin
EliottA28-May-09 3:16
EliottA28-May-09 3:16 
GeneralRe: WindowsService Clarification Pin
MumbleB28-May-09 3:31
MumbleB28-May-09 3:31 
AnswerRe: WindowsService Clarification Pin
Calla28-May-09 3:21
Calla28-May-09 3:21 
GeneralRe: WindowsService Clarification Pin
PIEBALDconsult28-May-09 3:36
mvePIEBALDconsult28-May-09 3:36 
QuestionOpen image file with file dialog and use it in the same program run Pin
raouaa28-May-09 2:21
raouaa28-May-09 2:21 
AnswerRe: Open image file with file dialog and use it in the same program run Pin
0x3c028-May-09 2:33
0x3c028-May-09 2:33 
GeneralRe: Open image file with file dialog and use it in the same program run Pin
raouaa29-May-09 2:43
raouaa29-May-09 2:43 
QuestionPeopleSoft_PeopleSoft.tlb Pin
BabuRao.k28-May-09 2:15
BabuRao.k28-May-09 2:15 
AnswerRe: PeopleSoft_PeopleSoft.tlb Pin
Mike Marynowski28-May-09 2:21
professionalMike Marynowski28-May-09 2:21 
AnswerRe: PeopleSoft_PeopleSoft.tlb Pin
Mike Marynowski28-May-09 2:27
professionalMike Marynowski28-May-09 2:27 
QuestionConversion --- need explanation Pin
u060509428-May-09 1:51
u060509428-May-09 1:51 
AnswerRe: Conversion --- need explanation Pin
Rob Philpott28-May-09 2:16
Rob Philpott28-May-09 2:16 
GeneralRe: Conversion --- need explanation Pin
u060509428-May-09 5:54
u060509428-May-09 5:54 
Rob Philpott wrote:
I'll have a go..

Reference types are things which are on the heap and 'referred to' by a reference.

So


Cat cat = new Cat();

Would give you a cat reference to a cat object (on the heap).

You could convert this to an object


object cat2 = cat;

So now cat 2 is considered an object, but still it's really a cat. You could cast it back again.

Does that make sense?



Ok...
Now i diverge a bit, what is the purpose of reference type?

Let's say, Cat extends from Animal.
U can have the following:
Animal x = new Animal();
Cat y = new Cat();
Animal z = new Cat();

Is z a Cat?
If both Animal and Cat have a method call talk();
and since z.talk() will be calling from Animal and not Cat,
how can z be consider a cat, when it can't talk like a Cat?
GeneralRe: Conversion --- need explanation Pin
Rob Philpott28-May-09 6:10
Rob Philpott28-May-09 6:10 
GeneralRe: Conversion --- need explanation Pin
OriginalGriff28-May-09 6:19
mveOriginalGriff28-May-09 6:19 
GeneralRe: Conversion --- need explanation Pin
Rob Philpott28-May-09 6:22
Rob Philpott28-May-09 6:22 
GeneralRe: Conversion --- need explanation Pin
u060509430-May-09 2:51
u060509430-May-09 2:51 
GeneralRe: Conversion --- need explanation Pin
OriginalGriff28-May-09 6:14
mveOriginalGriff28-May-09 6:14 
AnswerRe: Conversion --- need explanation Pin
PIEBALDconsult28-May-09 3:26
mvePIEBALDconsult28-May-09 3:26 
Questionexecuting code in a textbox on runtime Pin
WinSolution28-May-09 1:35
WinSolution28-May-09 1:35 

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.