Hi
I'm new to C# and programming in general. I know a few basics
but my knowledge of C# is limited. I'm currently learning about
Object-Oriented Programming and using ArrayLists in programs and am
really confused.
My assignment for this part is to write a
program that allows a user to carry out transaction processing (add,
change, delete, display) by using an ArrayList.
I'm doing a DVD collection so I know that I need:
DVD Title - which is a string
Availability - which is a char: X for can't find, A for its available and L for loaned out
Genre - which is again a string
Rating - Integer (number of stars ****)
Date of Purchase - float
Price - float
If anyone could help me understand this at all, it would be greatly appreciated.
Loading
Mike GoldPosted Jan 31, 2008, 11:51 AM
Hi Kyler,
An ArrayList can store any object (if you make a DVD class out of the attributes you listed you can store the instances of that class in the ArrayList).
That's as much info that I can give you, any more than that and I'd be doing your homework for you.
Best Regards,