Click here to Skip to main content
16,020,315 members

Comments by RalvarezHose (Top 29 by date)

RalvarezHose 14-Jul-14 18:30pm View    
I understand your point. This is not an homework assignment. I got this code from online and just wanted to see how it works. I found lots of other codes that work and doesn't work. But for that doesn't work that error fixed in the comment by another user. My programming is not good. In Main list.PrintNodes() has been called but LinkedList class has no such method defined. But I don't know where exactly to add it. I have been trying for last two hours. I just wanted to know, that way if I find something like this in next problem I will be able to solve it.
RalvarezHose 4-May-14 21:14pm View    
Deleted
I read it and re did it again. I got the output I was trying to get. But still not sure I did it right way. I will post the codes, do you mind verifying it one more time. Thank you.
RalvarezHose 4-May-14 16:38pm View    
Deleted
Not really. I am having hard time to get those. I thought I understood, when there was only one class and one derived class. But now, I think I am way off. I was just using an example below from a book as reference.
Base class must be first Interface names
↓ ↓
class Derived : MyBaseClass, IIfc1, IEnumerable, IComparable
{
...
}
Can you show me the right way to do it?
RalvarezHose 4-May-14 15:24pm View    
Deleted
I think I haven't been to implement from derived classes. Can you show me a simple example how do I include derived class from base class plz.
RalvarezHose 4-May-14 14:51pm View    
Deleted
Sorry about the confusion. I am just trying to write code for an assembly of classes with the baseclass Duck, interfaces IFlyBehavior, IQuackBehavior, and ISwimBehavior. Also trying to include derived classes class Mallar, class RubberDuck, and class DecoyDuck, that each derive from class Duck.