1. How to restrict a class from allowing to create only one
object. I.e., one should be allowed to create only one
object of the class type.

Answer Posted / ravi

Please refer the concept of singleton in design pattren.

Is This Answer Correct ?    15 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain the Lapsed Listener problem in .net

761


What are the new features of .net 2.0?

614


What is a service class?

641


What is .net mobile lists. : Microsoft dot net mobile

563


What are different types that a variable can be defined and their scopes ?

699






server.transfer limitation ?

1873


Explain is development of a mobile web application with asp.net is very easy? : Microsoft dot net mobile

598


How do we do authentications using atlas?

621


How can implement drag and drop using atlas?

645


Explain COM with example?

647


What is the difference between .net mobile pages and ordinary .net web page? : Microsoft dot net mobile

606


What happens to the winfx technologies?

661


Explain the race around condition? : .NET Architecture How can it be overcome? : .NET Architecture

582


What is textview control of .net mobile? : Microsoft dot net mobile

585


What are the types of memory management? : Dot net architecture

564