This is an under-the-hood question:
If I have a Public Class with a Private Constructor and a Public Method:
Public Class A
Private Sub New()
Public Sub DoSomething()
I can't implicitly create an instance of Class A from another class called B ( ie Dim a as New Class A) but I can use this line: A.DoSomething()
When Class B calls A.DoSomething() it doesn't create or own a copy of A but A does get created somewhere doesn't it? Else how can A run so that it can DoSomething?
If I have a Public Class with a Private Constructor and a Public Method:
Public Class A
Private Sub New()
Public Sub DoSomething()
I can't implicitly create an instance of Class A from another class called B ( ie Dim a as New Class A) but I can use this line: A.DoSomething()
When Class B calls A.DoSomething() it doesn't create or own a copy of A but A does get created somewhere doesn't it? Else how can A run so that it can DoSomething?