Last post Feb 15, 2010 09:54 AM by jasonjanofsky
Feb 13, 2010 07:36 PM|SamU|LINK
I have created objects for the following:
A person will have a physical address and a corporate position so I wanted to inherit both to no avail. How do I handle this?
Feb 13, 2010 08:30 PM|jasonjanofsky|LINK
Hrmm, given the context here, is this even a situation where you would want inheritance? Seems, to me, like your Person object would have a Physical Address Property and a Corporate Position property. Inheritance would be more for a situation like BigBoss
and Janitor inherit from Person.
Also, since you are doing an address class, might I suggest automatically geocoding through google. I have a blog post that gives you a set of code to do it:
Feb 14, 2010 12:09 AM|SamU|LINK
Thanks for your response. The geo-coding idea sounded really appealing but looks like I won't be able to get it for free as my app is an Intranet/Extranet application. What a cool feature that would've been though.
Feb 15, 2010 09:54 AM|jasonjanofsky|LINK
The great thing about the google geocoding is that it is free. You just need to sign up for a maps api key and throw it in your web.config.