Click here to Skip to main content
15,921,467 members
Home / Discussions / C#
   

C#

 
GeneralRe: Question on simple binding Pin
Brett Slaski1-Jul-04 2:44
Brett Slaski1-Jul-04 2:44 
GeneralRe: Question on simple binding Pin
Heath Stewart1-Jul-04 4:36
protectorHeath Stewart1-Jul-04 4:36 
GeneralRe: Question on simple binding Pin
Brett Slaski1-Jul-04 5:54
Brett Slaski1-Jul-04 5:54 
GeneralRe: Question on simple binding Pin
Heath Stewart1-Jul-04 17:48
protectorHeath Stewart1-Jul-04 17:48 
GeneralRe: Question on simple binding Pin
Brett Slaski2-Jul-04 3:08
Brett Slaski2-Jul-04 3:08 
GeneralRe: Question on simple binding Pin
Heath Stewart2-Jul-04 3:40
protectorHeath Stewart2-Jul-04 3:40 
GeneralRe: Question on simple binding Pin
Brett Slaski2-Jul-04 9:25
Brett Slaski2-Jul-04 9:25 
GeneralOOP implemenation question Pin
mealnumberone30-Jun-04 2:27
mealnumberone30-Jun-04 2:27 
I am an OOP newbie and had a question. I made my example more generic so sorry if it turned out cheesy. Basically, I have three classes in my hierarchy: Bicycle contains a set of Wheels. Wheels contain a set of Spokes. Spokes are just there. Each parent class has at least one child, i.e. Bicycle has at least one wheel, which has at least one spoke. Below is how I implemented it and wanted to get some critique. Should I have used Arrays instead of ArrayLists. Any comments are greatly appreciated.

namespace MyTestNamespace
{
	using System;
	using System.Collections;

	// Spoke class. Lowest level of my hierarchy
	public class Spoke {
		public Spoke() { ; }
	}

	// Wheel class. Contains bunch of spokes.
	public class Wheel {
 		private ArrayList spokes;

		public Wheel() {
			spokes = new ArrayList();
		}

		public void AddSpoke(Spoke spoke) {
			spokes.Add(spoke);
		}

		public void RemoveSpoke(int index) {
			spokes.RemoveAt(index);
		}

		public ArrayList GetSpokes() {
			return spokes;
		}
	}

	// Bicycle class. Contains bunch of wheels. Top of my hierarchy.
	public class Bicycle {

		private ArrayList wheels;

		public Bicycle() {
			wheels = new ArrayList();
		}

		/* Other methods similar to Wheel methods go here*/
	}
}

GeneralRe: OOP implemenation question Pin
Colin Angus Mackay30-Jun-04 3:15
Colin Angus Mackay30-Jun-04 3:15 
GeneralRe: OOP implemenation question Pin
mealnumberone30-Jun-04 7:13
mealnumberone30-Jun-04 7:13 
GeneralRe: OOP implemenation question Pin
Heath Stewart30-Jun-04 8:39
protectorHeath Stewart30-Jun-04 8:39 
GeneralMouseHover on toolbar button Pin
Member 114743230-Jun-04 1:52
Member 114743230-Jun-04 1:52 
GeneralRe: MouseHover on toolbar button Pin
Nick Parker30-Jun-04 3:06
protectorNick Parker30-Jun-04 3:06 
GeneralRe: MouseHover on toolbar button Pin
Heath Stewart30-Jun-04 3:55
protectorHeath Stewart30-Jun-04 3:55 
GeneralRe: MouseHover on toolbar button Pin
Nick Parker30-Jun-04 6:28
protectorNick Parker30-Jun-04 6:28 
GeneralRe: MouseHover on toolbar button Pin
Heath Stewart30-Jun-04 3:54
protectorHeath Stewart30-Jun-04 3:54 
Generalrefactoring plugin Pin
steven shingler30-Jun-04 1:40
steven shingler30-Jun-04 1:40 
GeneralRe: refactoring plugin Pin
Werdna30-Jun-04 5:49
Werdna30-Jun-04 5:49 
GeneralRe: refactoring plugin Pin
steven shingler30-Jun-04 5:55
steven shingler30-Jun-04 5:55 
GeneralRe: refactoring plugin Pin
Werdna30-Jun-04 6:07
Werdna30-Jun-04 6:07 
GeneralRe: refactoring plugin Pin
steven shingler30-Jun-04 12:40
steven shingler30-Jun-04 12:40 
GeneralFile transfer problems Pin
janne6730-Jun-04 1:31
janne6730-Jun-04 1:31 
GeneralRe: File transfer problems Pin
Not Active30-Jun-04 2:53
mentorNot Active30-Jun-04 2:53 
Generaloverride button to create an image button... Pin
misterbear30-Jun-04 1:01
misterbear30-Jun-04 1:01 
GeneralRe: override button to create an image button... Pin
Nnamdi Onyeyiri30-Jun-04 1:10
Nnamdi Onyeyiri30-Jun-04 1:10 

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.