.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
 
Sign In
Register
 
Win Surprise Gifts!!!
Congratulations!!!


Top 5 Contributors of the Month
david stephan

Home >> Interview Question >> Patten/Practices >> Post New Question Subscribe to Interview Questions

You have got a complex object to create whose construction takes a long period. You have to create 1000 such objects but at the same time only one object is required. What should be the pattern to use?

Posted By :Jean Paul     Posted Date :September 30, 2010    Points :10   Category :Patten/Practices 
Pattern: Flyweight

You can also find related Interview Question to You have got a complex object to create whose construction takes a long period. You have to create 1000 such objects but at the same time only one object is required. What should be the pattern to use?  below: 

How do you create a new object in JavaScript?

  
var obj = new Object(); or var obj = {}; (More...)

How do we create DCOM object in VB6?

  
Using the CreateObject method you can create a DCOM object. You have to put the server
name in the registry. (More...)

How to create DCOM object in VB6?

  
Use the CreateObject method to create a DCOM object. Put the server name in the registry. (More...)

How to Create Object Initializer in C#

  
class CL
{
public int Id{get;set;}
}

CL cl = new CL{Id=101}; (More...)

What is a SPSite and SPWeb object, and what is the difference between each of the objects?

  
The SPSite object represents a collection of sites (site collection [a top level site and all its subsites]). The SPWeb object represents an instance SharePoint Web, and SPWeb object contains things like the actual content. A SPSite object contains the various subsites and the information regarding them.
(More...)

How can you create script of objects in database?

  
Sql Server Management Studio can be use to generate script of all the objects in database server. (More...)

what is required to serialize an object?

  
Stream Object and Binary Formatter or SOAPFormatter (More...)

What is a SPSite and SPWeb object, and what is the difference between each of the objects?

  

The SPSite object represents a collection of sites (site collection [a top level site and all its subsites]). The SPWeb object represents an instance SharePoint Web, and SPWeb object contains things like the actual content. A SPSite object contains the various subsites and the information regarding them (More...)

How will you create objects?

  
A class defines a type of object, but it is not an object itself. An object is a concrete entity based on a class, and is sometimes referred to as an instance of a class.
Objects can be created by using the new keyword followed by the name of the class that the object will be based on, like this:
Customer object1 = new Customer();
When an instance of a class is created, a reference to the object is passed back to the programmer. (More...)

What is Private Constructor? and it's use? Can you create instance of a class which has Private Constructor?

  
When a class declares only private instance constructors, it is not possible for classes outside the program to derive from the class or to directly create instances of it. (Except Nested classes)
Make a constructor private if:

1) You want it to be available only to the class itself. For example, you might have a special constructor used only in the implementation of your class' Clone method.

2) You do not want instances of your component to be created. For example, you may have a class containing nothing but Shared utility functions, and no instance data. Creating instances of the class would waste memory. (More...)

What are the requirements to create a CLR based user-defined type?

  
CLR must be enabled for the instance and A class created with a CLR-compatible language. (More...)

Quick Links For Interview Questions Categories:
ASP.Net Windows Application   .NET Framework   C#   VB.Net   ADO.Net  
Sql Server   SharePoint   Silverlight   OOPs   JQuery   JavaScript/VBScript
Biztalk Patten/Practices .IIS WCF WPF WWF
Networking Aptitude Others   All      

Find questions, FAQ's and their answers related to .NET, C#, Vb.Net, Sql Server and many more.

 
Now you can find lots of .NET, C#, Vb.Net, SQL Server,Windows, ASP.Net related Questions and their Answers here at www.dotnetspark.com. Our aim is to help you pass your certification Exams (MCP, MCSD, MCAD etc.,) with flying scores and get good name in your company.

So, Start looking our Interview Question section daily and improve your .NET Skills. You can also help others by posting Interview Questions and their Answers in this section.


Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend