Visual Basic Development Bookmark and Share   
 Home > Visual Basic General > public class vs friend class vs class define class
 

public class vs friend class vs class define class

Hi guys,

I have a question, when we create a class, we can use this keyword Public Friend, or just omit it.What’s the difference of them? What’s the difference between these classes? Affect access privilege?

Public Class aa

End Class

Friend Class bb

End Class

Private Class cc

End Class

' Types declared 'Private' must be inside another type

Protected Class dd

End Class

'Protected types can only be declared inside of a class

Class ee

End Class

Thanks in advance

MaDFroG20091013  4 hours 24 minutes ago
http://msdn.microsoft.com/en-us/library/76453kax.aspx
coding for fun Be a good forum member mark posts that contain the answers to your questions or those that are helpful
Please format the code in your posts with the button . Makes it easier to read .
bdbodger  3 hours 4 minutes ago

You can use google to search for other answers

Custom Search

More Threads

• Tcp receive acting strange
• Different shapes for buttons in VB.net 2003
• vb6 to vb .net showdialog() exception
• Property with Collection (Of RichTextBox)
• How can I get the registry path of a Installed printers like CutePDF
• Why "Forms" are hidding the OS taskbar?
• develop webparts for MOSS 2007 using vb.net ( visual studio 2005)
• Data grid selection load form
• How can I show picture at runtime on mobile ?
• Column swapping in DataGridView with DropDown in Column Header