Click here to Skip to main content
15,892,737 members
Articles / Programming Languages / C#

Stateful or Stateless classes

Rate me:
Please Sign up or sign in to vote.
4.68/5 (28 votes)
26 Jun 2015CPOL8 min read 51.6K   30  
This article contains tips for designing classes. Normally developers take considerable amount of time to decide whether their classes should be stateless or stateful. First we are discussing what is meant by state of an object and then getting into tips for deciding what should be the state of our

Views

Daily Counts

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Architect Orion Systems Integrators Inc
United States United States
Joy is a passionate software engineer with 10+ years of experience, currently working as an Architect at Orion Systems Integrators Inc. He specializes mainly in Microsoft technologies such as WPF,WCF, ASP.Net, Azure, Surface,SQL Server as well as other technologies like HTML5, AngularJS and NodeJS. Favorite languages are C#,JavaScript, TypeScript,Go,VB.Net & PowerShell. Along with his day to day technology topics, he is interested in anything related to software development such as hardware, security, artificial intelligence etc. He enjoys sharing his knowledge with others. More info about him can be found on his web site http://joymononline.in/ and technical blog http://joymonscode.blogspot.com

Comments and Discussions