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

What is the difference between metadata and menifest ?

468


Explain the purpose of cache? How is it used? : .NET Architecture

537


how to change the title of my window?

1412


hi, kindly send WWF(.net 3.5) pdf notes to my id. thanx in advance, chays

1881


What re interop services?

557






Explain what does the term "green architecture" mean? : Dot net architecture

549


What is cache coherency? : Dot net architecture

486


What is the use of TPL DATAFLOW?

547


Explain How to improve the cache performance? : Dot net architecture

514


difference between data reader and dataset

1779


difference between Response.write,server.transfer and also which one is used when ?

1462


Describe the advantages of writing a managed code application instead of unmanaged one. What is involved in certain piece of code being managed?

604


Why the config file might not be writable

563


how to delete the record using data reader

1854


What is the mesi? : .NET Architecture

596