We can have this by putting parameters in the function.
var e=new Employee(”Sukesh Marla”,”Mumbai”);
Hope you enjoyed reading this and learned something new. Your comments and votes are always welcome.
If you are looking for some hard core live training on MVC, WCF, Design
Patterns, BI, WPF, TFS, HTML5 visit
Also see another .NET
interview questions video on use of private constructor: -