|
-
Feb 22nd, 2002, 01:32 AM
#1
little question
Just wondering if there's anything wrong with declaring a class inside another class
tnx
-
Feb 22nd, 2002, 02:43 AM
#2
Hyperactive Member
No there is nothing wrong with declaring a class in another class. When you declare a ADO.NET resultset class in one of your classes, arent you already doing that ?
William T
Software Architect / Chief Software Developer
Softwaremaker.Net Pte Ltd
http://www.Softwaremaker.net
*** Things are always the darkest before they go pitch black ***
-
Feb 22nd, 2002, 09:41 AM
#3
do you mean this:
Code:
Class Class1
Class Class2
.......................
End Class
End Class
or do you mean:
Code:
Class Class1
Public myClass As Class2
End Class
first one is no
second is yes
-
Feb 22nd, 2002, 01:05 PM
#4
-
Feb 22nd, 2002, 01:30 PM
#5
Easy Make the functionailty of the class all Friend
Friend Sub mySub
that way it can only be accessed by the app it is in.
I think you can declare a class with Friend..try it
Friend Classs Class1
End Class
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|