So bar is now an object While using the properties A and B. Any functionality can be quite a constructor; it just does not generally seem sensible. Secondaly, I've the subsequent code which I've used for WebMethods in my asp.Web uncomplicated application Take a look at the best localities in https://newlaunchprojectsinnoida.blogspot.com/