Quote:
but im just stuck and confused
Yes, you are, and there is nothing wrong with that; everyone here was once a beginner, and C#, and the Framework, are complex.
What concerns me is the level of misuse of the language shown in your code suggests you have not mastered the basics that you need to move on to higher level concepts.
Consider:
1 in the constructor of Purse: Purse MyPurse = (Purse)MemberwiseClone();
you create a copy in a private variable that cannot be accessed
outside the constructor
2 the class Coins does not inherit from IEquatable<Coin> : the overrides you define will never be used
3 note that 'ArrayList is an old, deprecated, structure; use a List<Coin> ... using a strongly typed List means you don't have to cast from Object to Coin.
What to do: search CodeProject for recommended books on C#, and find resources like this: [
^], [
^], [
^]
«... thank the gods that they have made you superior to those events which they have not placed within your own control, rendered you accountable for that only which is within you own control For what, then, have they made you responsible? For that which is alone in your own power—a right use of things as they appear.» Discourses of Epictetus Book I:12