Thursday, November 29, 2018

Interview

1. How WPF render the controls?
2. If there are two buttons on a window form and you want to convert one button into textbox at click of second button, what will you do?
3. If there are two user controls, each controls have button on click of each button you want to togetger both button.
4. If there is a list of control names and you want to  create all controls. How will you do that?

5. Difference between sealed and Singleton.
Ans : There are two main difference
a. More than object can be created of sealed class
b. Singleton can be inherited by nested class while nested class can not inherit by nested  nor outer class.

6.What is explicit interface implementation?
Ans : In explicit interface implementation you have to define method with interface name.

Interface1.Add()
{

}

7. What are the benefit of routed event?

No comments:

Followers

Link