Can Non-Default constructors be used with Single Call SAO?

Q

.NET INTERVIEW QUESTIONS - Can Non-Default constructors be used with Single Call SAO?

✍: Guest

A

Non-Default constructors can not be used with single call objects as object is created with every method call, there is no way to define Non-default constructors in method calls.

It is possible to use Non-Default constructor with Client activated objects as both methods :-

“NEW” keyword and “Activator.CreateInstance” provide a way to specify Non-Default constructors.

2009-09-01, 4338👍, 0💬