Skip to content

Instantly share code, notes, and snippets.

@akshayKhot
Last active September 11, 2019 19:18
Show Gist options
  • Save akshayKhot/587bf264b7a99dc4367bcf22f95e2f2a to your computer and use it in GitHub Desktop.
Save akshayKhot/587bf264b7a99dc4367bcf22f95e2f2a to your computer and use it in GitHub Desktop.
Code showing the Method Object pattern
class Employee
{
void ProcessData()
{
string name;
int code, salary;
// lots of other local variables...
// process name
// perform complex computation with code and salary
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment