PC Review


Reply
Thread Tools Rate Thread

Class with Inherited Class as an Array

 
 
=?Utf-8?B?VG9tX0I=?=
Guest
Posts: n/a
 
      2nd Nov 2005
How can the top class have one of its elements be an array of the inherited
class?

Public Class2
Inherits Class1
Public SomeInfo as String
Public StringArray() as Class1
End Class

Public Class1
Public MyString as String
End Class

Totally lost on this! Thanks.
 
Reply With Quote
 
 
 
 
Mattias Sjögren
Guest
Posts: n/a
 
      2nd Nov 2005
>How can the top class have one of its elements be an array of the inherited
>class?


Your code looks fine. Doesn't it work for you?


Mattias

--
Mattias Sjögren [MVP] mattias @ mvps.org
http://www.msjogren.net/dotnet/ | http://www.dotnetinterop.com
Please reply only to the newsgroup.
 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Can a base class method return an object of an inherited class typ Ethan Strauss Microsoft C# .NET 12 12th Jan 2008 12:41 AM
Instance of derived class does not show public methods or properties that are not in the inherited class D Witherspoon Microsoft Dot NET 5 28th Mar 2006 11:25 PM
Instance of derived class does not show public methods or properties that are not in the inherited class D Witherspoon Microsoft VB .NET 5 28th Mar 2006 11:25 PM
ImageList in base class not working correctly in inherited class =?Utf-8?B?QnJ1Y2UgUGFya2Vy?= Microsoft Dot NET Framework Forms 3 16th Dec 2005 02:20 AM
Why I can't create a contructor in a class inherited from Component Model class C.G. Oh Microsoft Dot NET Framework 0 19th Nov 2004 02:09 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 12:17 AM.