Object oriented programming in c#.net