Main menu:

 

August 2008
M T W T F S S
« Jul   Sep »
 123
45678910
11121314151617
18192021222324
25262728293031

Site search

Archives

Categories

Tags

Links:

Design patterns

Design pattern are the standards and best practices used to accomplish a particular goal, well there are various design patterns, they are Abstract factory pattern, Builder pattern, and Factory pattern.

Abstract factory pattern : Its a pattern where you create the interface and the interface expose the properties , methods , events and classess..

Like I have a EmployeeFactoryInterface which returns IEmployeeManager

public interface IEmployeeFactory

{

IEmployeeManager Create();

}

public interface IEmployeeManager()

{

Dataset getAllEmployee();

}

public EmployeeFactory : IEmployeeFactory

{

public IEmployeeManager Create()

{

return Employee();

}

}

public class Employee : IEmployeeManager

{

public Dataset getAllEmployee()

{

//create connection

//execute stored procedure

//return dataset containing the employee details

}

}

i will post the figure in my next post

Comments

Comment from Yaro Stark
Time August 9, 2008 at 11:53 am

Soory couldnt find the contact form so i decided to leave a comment. You have a nice blog and it has a great potential to make you $5000/mo, check out this link for some great free videos and blueprint to help you improve your blog - http://timpedia.com/blog/blogging-for-5000-dollars-a-month/

Pingback from Recent Links Tagged With “designpatterns” - JabberTags
Time November 2, 2008 at 2:34 pm

[...] public links >> designpatterns Design patterns Saved by esmeepeters on Sat 01-11-2008 SmartBar to AwesomeBar | edilee Saved by thousandmiles on [...]

Write a comment





Currently you have JavaScript disabled. In order to post comments, please make sure JavaScript and Cookies are enabled, and reload the page.