|
web
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
vb.net aggregation questionto perform aggregation in vb.net code.. in my model, i have rectangle, shape, drawing classes..rectangle class inherits shape class (is - a relationship), and drawing class has shape class(aggregation) Shape Class: Public MustInherit Class CShape Rectangle Class: Public Class CRectangle Inherits CShape Drawing Class: public class CDrawing ????????????????? wat im tryin to do is aggregation, to show drawing class has shapes..and i dont know how to perform it in code.. i kinda assume that shape class cant be instantiated coz its the base class(not sure).. any help will be really appreciated..cheers! > wat im tryin to do is aggregation, to show drawing class has There are many ways, for example> shapes.. Public Readonly Property Shapes() As List(Of Shape)... Public Property Shapes() As Shape() Public Readonly Property Shapes() as Collection Public Readonly Property Shapes() as System.Array or whatever. Just like mentioning that "person has money" does not imply where and how the money is stored (on bank account, cash in wallet, cheque, whatever) -h-
How can I use a dll with several programs?
vb2005 and ce net 4.2 What exactly does this message mean? API found in C# but not VB? books for vb.net Binding Data to Dataset or Table DatagridView Column Headers in VB, String '=' is two orders of magnitude slower than .Equals! disable/enable menu items How to find out current Screen resolution? |
|||||||||||||||||||||||