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

C#

 
AnswerRe: please help Pin
pmarfleet16-Oct-07 20:55
pmarfleet16-Oct-07 20:55 
GeneralRe: please help Pin
DavidNohejl17-Oct-07 0:41
DavidNohejl17-Oct-07 0:41 
AnswerRe: please help Pin
Malcolm Smart16-Oct-07 21:06
Malcolm Smart16-Oct-07 21:06 
GeneralRe: please help Pin
N a v a n e e t h16-Oct-07 21:25
N a v a n e e t h16-Oct-07 21:25 
GeneralRe: please help Pin
J4amieC16-Oct-07 22:17
J4amieC16-Oct-07 22:17 
GeneralRe: please help Pin
Pete O'Hanlon16-Oct-07 22:01
mvePete O'Hanlon16-Oct-07 22:01 
Questionwaht exactly the use of new keyword in c# Pin
sravani.p16-Oct-07 20:26
sravani.p16-Oct-07 20:26 
AnswerRe: waht exactly the use of new keyword in c# Pin
YouMiss16-Oct-07 20:37
YouMiss16-Oct-07 20:37 
Hey, the 'new' keyword is to explicitly hide the base class members

But, if you want to use it, you have to call the method from the derived class. In this case you surely need to create a reference of the derived class other than a original base class reference.

Since you have already created the Program object to a user reference, all you need to do is to perform a cast:

(Program)u.print();

regards

Someone was born greatness;
Someone achieved greatness;
Someone let the greatness thrust upon him;

AnswerRe: waht exactly the use of new keyword in c# Pin
Andrei Ungureanu16-Oct-07 20:37
Andrei Ungureanu16-Oct-07 20:37 
AnswerRe: waht exactly the use of new keyword in c# Pin
Guffa16-Oct-07 22:13
Guffa16-Oct-07 22:13 
GeneralRe: waht exactly the use of new keyword in c# Pin
sravani.p17-Oct-07 20:41
sravani.p17-Oct-07 20:41 
QuestionDisabling System Sound Alerts for MessageBoxes Pin
Sukhjinder_K16-Oct-07 19:26
Sukhjinder_K16-Oct-07 19:26 
AnswerRe: Disabling System Sound Alerts for MessageBoxes Pin
Niiiissssshhhhhuuuuu16-Oct-07 20:35
Niiiissssshhhhhuuuuu16-Oct-07 20:35 
GeneralRe: Disabling System Sound Alerts for MessageBoxes Pin
Sukhjinder_K16-Oct-07 21:48
Sukhjinder_K16-Oct-07 21:48 
QuestionSSL or SSH for pocket pc Pin
kingletas16-Oct-07 18:49
kingletas16-Oct-07 18:49 
QuestionSSL and SSH Pin
kingletas16-Oct-07 18:44
kingletas16-Oct-07 18:44 
AnswerRe: SSL and SSH Pin
N a v a n e e t h16-Oct-07 19:08
N a v a n e e t h16-Oct-07 19:08 
GeneralRe: SSL and SSH Pin
kingletas16-Oct-07 19:24
kingletas16-Oct-07 19:24 
GeneralRe: SSL and SSH Pin
N a v a n e e t h16-Oct-07 20:14
N a v a n e e t h16-Oct-07 20:14 
GeneralRe: SSL and SSH Pin
kingletas16-Oct-07 21:14
kingletas16-Oct-07 21:14 
GeneralRe: SSL and SSH Pin
N a v a n e e t h16-Oct-07 21:29
N a v a n e e t h16-Oct-07 21:29 
GeneralRe: SSL and SSH Pin
kingletas16-Oct-07 21:42
kingletas16-Oct-07 21:42 
GeneralRe: SSL and SSH Pin
N a v a n e e t h16-Oct-07 22:33
N a v a n e e t h16-Oct-07 22:33 
QuestionHow can I reallocate memory of arrays in C#? Pin
hogan.smith16-Oct-07 18:31
hogan.smith16-Oct-07 18:31 
AnswerRe: How can I reallocate memory of arrays in C#? Pin
MohammadAmiry16-Oct-07 19:02
MohammadAmiry16-Oct-07 19:02 

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.