R
roland
All properties and methods of a class are implementations of two (or more)
interfaces.
Is it possible to enforce that only instances of the class can be
instantiated if they are already declared as one of those interfaces?
public class1
implements interface1,interface1
....
end class
should work:
dim A as interface1 = new class1
dim B as interface2 = new class1
should not work:
dim C as new class1
or
dim C as class1 = new class1
Tia, Roland
interfaces.
Is it possible to enforce that only instances of the class can be
instantiated if they are already declared as one of those interfaces?
public class1
implements interface1,interface1
....
end class
should work:
dim A as interface1 = new class1
dim B as interface2 = new class1
should not work:
dim C as new class1
or
dim C as class1 = new class1
Tia, Roland