Last active
September 11, 2019 19:18
-
-
Save akshayKhot/587bf264b7a99dc4367bcf22f95e2f2a to your computer and use it in GitHub Desktop.
Code showing the Method Object pattern
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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