5 Class ClassB_vbs : Public FullPath : End Class
\r
10 .FullPath = g_SrcPath
\r
15 Sub get_StaticObjects( InterfaceName, out_Obj )
\r
16 If IsEmpty( InterfaceName ) or InterfaceName = "ClassI" Then
\r
17 Set out_Obj = get_ClassB()
\r
22 '-------------------------------------------------------------------------
\r
23 ' ### <<<< [ClassB] Class >>>>
\r
24 '-------------------------------------------------------------------------
\r
27 Function get_ClassB() '// has_interface_of ClassI
\r
28 If IsEmpty( g_ClassB ) Then _
\r
29 Set g_ClassB = new ClassB
\r
30 Set get_ClassB = g_ClassB
\r
34 Class ClassB '// has_interface_of ClassI
\r
35 Public Property Get Name() : Name = TypeName(Me) : End Property
\r
36 Public Property Get TrueName() : TrueName = TypeName(Me) : End Property
\r
37 Public Sub Validate() : End Sub
\r
38 '--- Name is factory pattern.
\r
40 Public Property Get DefineInfo() : Set DefineInfo = g_ClassB_vbs : End Property
\r
43 Public Function Method1() : Method1 = "ClassB.Method1" : End Function
\r