Click here to Skip to main content
15,900,108 members
Home / Discussions / C#
   

C#

 
GeneralRe: Collection class with different class members Pin
pxp30-Jun-04 7:32
pxp30-Jun-04 7:32 
GeneralRe: Collection class with different class members Pin
mav.northwind30-Jun-04 8:31
mav.northwind30-Jun-04 8:31 
GeneralRe: Collection class with different class members Pin
pxp30-Jun-04 23:41
pxp30-Jun-04 23:41 
GeneralRe: Collection class with different class members Pin
mav.northwind1-Jul-04 0:29
mav.northwind1-Jul-04 0:29 
GeneralRe: Collection class with different class members Pin
pxp1-Jul-04 3:28
pxp1-Jul-04 3:28 
GeneralRe: Collection class with different class members Pin
Heath Stewart30-Jun-04 8:35
protectorHeath Stewart30-Jun-04 8:35 
GeneralRe: Collection class with different class members Pin
pxp30-Jun-04 22:47
pxp30-Jun-04 22:47 
GeneralRe: Collection class with different class members Pin
Heath Stewart1-Jul-04 3:54
protectorHeath Stewart1-Jul-04 3:54 
Mav's way, IIRC, uses interfaces. Interfaces and abstract classes differ mostly in the fact that abstract classes can at least contain some functionality. Take the top-most class from which all classes derive: System.Object. It's ToString method is available on any class with default behavior to return the namespace-qualified type name, but classes can override it to return something else. With an interface, each implementing class would have to override it; they don't have a choice. Also, a class can implement multiple interfaces, but can only extend one class.

pxp wrote:
yes VB is a whole different cookie to eat then C#,...noticed

Actually, even VB.NET is different. The syntax is mostly the same, yes, but the output is very different. VB.NET, C#, MC++, and any other managed languages can use assemblies written in any other language because the language compiler for each language compiles to Intermediate Language (IL). Some languages may not support all the features of the Common Language Infrastructure (CLI) and, in many cases, would only be able to use CLS-compliant (Common Language System) types. JScript.NET is a good example.

pxp wrote:
Mostly i work of examples / snippets but did not find anything regarding various calsses in one collection.

Don't think of it as multiple classes but as one class - the abstract class. Sure, in actually the collection contains multiple instances but since each one of those classes derives from the base class (and your collection's methods and properties use that base class).

 

Microsoft MVP, Visual C#
My Articles
GeneralRe: Collection class with different class members Pin
pxp1-Jul-04 4:05
pxp1-Jul-04 4:05 
Generalvariable object names Pin
rturner00329-Jun-04 20:13
rturner00329-Jun-04 20:13 
GeneralRe: variable object names Pin
Colin Angus Mackay29-Jun-04 20:49
Colin Angus Mackay29-Jun-04 20:49 
GeneralRe: variable object names Pin
Nick Parker30-Jun-04 3:15
protectorNick Parker30-Jun-04 3:15 
GeneralCPU time consuming program Pin
Mikke_x29-Jun-04 19:45
Mikke_x29-Jun-04 19:45 
GeneralRe: CPU time consuming program Pin
Colin Angus Mackay29-Jun-04 20:42
Colin Angus Mackay29-Jun-04 20:42 
GeneralRe: CPU time consuming program Pin
Mikke_x30-Jun-04 6:16
Mikke_x30-Jun-04 6:16 
GeneralTreeview count parents Pin
saud_a_k29-Jun-04 19:40
saud_a_k29-Jun-04 19:40 
Generaloops.. I got it Pin
saud_a_k29-Jun-04 19:45
saud_a_k29-Jun-04 19:45 
GeneralOk One more question people Pin
saud_a_k29-Jun-04 19:57
saud_a_k29-Jun-04 19:57 
GeneralRe: Ok One more question people Pin
Heath Stewart30-Jun-04 6:02
protectorHeath Stewart30-Jun-04 6:02 
GeneralRe: Ok One more question people Pin
saud_a_k30-Jun-04 19:10
saud_a_k30-Jun-04 19:10 
GeneralGPS data via Bluetooth (com port communication) Pin
stanlyB2329-Jun-04 12:18
sussstanlyB2329-Jun-04 12:18 
GeneralRe: GPS data via Bluetooth (com port communication) Pin
Heath Stewart29-Jun-04 13:59
protectorHeath Stewart29-Jun-04 13:59 
GeneralRe: GPS data via Bluetooth (com port communication) Pin
pxp29-Jun-04 21:57
pxp29-Jun-04 21:57 
GeneralRe: GPS data via Bluetooth (com port communication) Pin
stanlyB2329-Jun-04 23:50
sussstanlyB2329-Jun-04 23:50 
GeneralRe: GPS data via Bluetooth (com port communication) Pin
pxp30-Jun-04 0:01
pxp30-Jun-04 0:01 

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.