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

C#

 
QuestionHow can I make a method abstract in a child class? Pin
Meysam Mahfouzi3-May-09 11:47
Meysam Mahfouzi3-May-09 11:47 
AnswerRe: How can I make a method abstract in a child class? Pin
Henry Minute3-May-09 12:42
Henry Minute3-May-09 12:42 
AnswerRe: How can I make a method abstract in a child class? Pin
Alan N3-May-09 13:46
Alan N3-May-09 13:46 
GeneralRe: How can I make a method abstract in a child class? Pin
Meysam Mahfouzi3-May-09 18:24
Meysam Mahfouzi3-May-09 18:24 
GeneralRe: How can I make a method abstract in a child class? Pin
Alan N3-May-09 23:47
Alan N3-May-09 23:47 
GeneralRe: How can I make a method abstract in a child class? Pin
Meysam Mahfouzi4-May-09 2:22
Meysam Mahfouzi4-May-09 2:22 
GeneralRe: How can I make a method abstract in a child class? Pin
Alan N4-May-09 3:26
Alan N4-May-09 3:26 
GeneralRe: How can I make a method abstract in a child class? Pin
Meysam Mahfouzi4-May-09 4:05
Meysam Mahfouzi4-May-09 4:05 
Thank you very much for your response Alan! It's working Smile | :)

I didn't know that a method with override modifier can have no body. But with help of override abstract, it can. great to know.

The original code I posted was translated from a java code from Head First Design Patterns book (chapter 3, Decorator Pattern).

Do you know java? It seems that the original code I posted will return 2 written in Java.
GeneralRe: How can I make a method abstract in a child class? Pin
Alan N4-May-09 4:41
Alan N4-May-09 4:41 
QuestionUrgent Help With Serialization needed Pin
GrgBalden3-May-09 11:46
GrgBalden3-May-09 11:46 
AnswerRe: Urgent Help With Serialization needed Pin
Henry Minute3-May-09 12:39
Henry Minute3-May-09 12:39 
QuestionRe: Urgent Help With Serialization needed Pin
GrgBalden3-May-09 23:10
GrgBalden3-May-09 23:10 
AnswerRe: Urgent Help With Serialization needed Pin
Henry Minute4-May-09 1:33
Henry Minute4-May-09 1:33 
GeneralRe: Urgent Help With Serialization needed Pin
GrgBalden4-May-09 3:09
GrgBalden4-May-09 3:09 
GeneralRe: Urgent Help With Serialization needed Pin
Henry Minute4-May-09 4:10
Henry Minute4-May-09 4:10 
QuestionNeed some help fast:D [modified] Pin
DrJele3-May-09 7:32
DrJele3-May-09 7:32 
AnswerRe: Need some help fast:D Pin
Henry Minute3-May-09 8:46
Henry Minute3-May-09 8:46 
GeneralRe: Need some help fast:D Pin
Member 10339073-May-09 10:43
Member 10339073-May-09 10:43 
GeneralRe: Need some help fast:D Pin
DrJele4-May-09 10:29
DrJele4-May-09 10:29 
GeneralRe: Need some help fast:D Pin
Member 10339074-May-09 20:55
Member 10339074-May-09 20:55 
Questionerror using float for array to string Pin
onetreeup3-May-09 7:26
onetreeup3-May-09 7:26 
AnswerRe: error using float for array to string Pin
fly9043-May-09 8:06
fly9043-May-09 8:06 
QuestionAcess control system for company entrance Pin
7alool3-May-09 4:41
7alool3-May-09 4:41 
AnswerRe: Acess control system for company entrance Pin
PIEBALDconsult3-May-09 5:43
mvePIEBALDconsult3-May-09 5:43 
AnswerRe: Acess control system for company entrance Pin
Dave Kreskowiak3-May-09 6:39
mveDave Kreskowiak3-May-09 6:39 

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.