//Visual Basic 2008/2010 Method Overloading in Klassen - Overloads Object Oriented Programming public class Person { private string m_Name; public virtual string Name { get { Name = this.m_Name; } set { this.m_Name = value; } } } public class Persons { protected Person[] m_Items; protected int m_Count; public virtual Person this[int index] { get { Item = this.m_Items(index); } } public virtual int Count { get { Count = this.m_Count; } } public virtual void Add(Person person) { this.m_Items(Count) = person; this.m_Count += new System.EventHandler(1); } } //Bezoek www.vbvoorbeelden.be voor meer C# voorbeelden. //Copyright - De Wolf / vbvoorbeelden - 2003-2010 - Alle rechten voorbehouden.