Question is: Should I Declare a Class that is an Array not declared as such but is.
Or should I declare the Class with only the members that it contains knowing I must use some of them 6 Times at the same time?
All in the same string.
like in Example 1
class Horse
int[][][] Horse [2][]
then go on to instantiate it either here or in the Main method
Or Example 2
class Horse
class firstTrack : Horse
class second Track : Horse
class thirdTrack : Horse
then each of these subclasses is an Array as well
creating an Array of Arrays I must convert this to strings and perform manipulations and write to files and Database.
Or should I use The
List way of doing it?
before I proceed I must know if there are pitfalls
or easier ways possibly
Any Help would be appreciated Thank You in Advance
NewbyOneCanuby 0 Newbie Poster
Recommended Answers
Jump to PostIf I understand you well, I should have a Horse class, and put it in a List of Horses. Every Horse should have(among others) an int property Track(or something) giving you the track number.
Jump to PostActually it is a file operation similar to a database operation
Could you explain what it is?
Jump to PostWhy are you still talking about a Horse class? This is very confusing. I am not a native English speaker, does this counts for you also?
Would you please elaborate on what you mean by a Horse?
All 11 Replies
ddanbe 2,724 Professional Procrastinator Featured Poster
Geekitygeek 480 Nearly a Posting Virtuoso
NewbyOneCanuby 0 Newbie Poster
Geekitygeek 480 Nearly a Posting Virtuoso
ddanbe 2,724 Professional Procrastinator Featured Poster
NewbyOneCanuby 0 Newbie Poster
ddanbe 2,724 Professional Procrastinator Featured Poster
NewbyOneCanuby 0 Newbie Poster
NewbyOneCanuby 0 Newbie Poster
Geekitygeek 480 Nearly a Posting Virtuoso
NewbyOneCanuby 0 Newbie Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.