----------------------------------------------------------- New Message on BDOTNET
----------------------------------------------------------- From: RedSunBeer Message 9 in Discussion use interfaces to define what methods a dll/class would require to implement. for eg if a client requires some data to be validated the define an interface which will have methods to validate that data. a typical method would be a emailid validation. define a method say public bool validateEmail(string emailId) in your interface. any class which implements this interface should have a method to match the above definition. The class method would have the logic to determine what is a valid email id and would return true or false accordingly. use an abstract class whenever you dont want any user to instantiate the class but at the same time you need the properties/methods of a class to be available in a derived class. So if an abstract class implemented the interace for validation it could then be inherited by another class which would use the validateEmail(string emailId) method. The derived class could then have its own methods to determine what to do if the validateEmail method returns true or false (like retreiving the error message or logging the error or sending the data for further processing). ----------------------------------------------------------- To stop getting this e-mail, or change how often it arrives, go to your E-mail Settings. http://groups.msn.com/BDotNet/_emailsettings.msnw Need help? If you've forgotten your password, please go to Passport Member Services. http://groups.msn.com/_passportredir.msnw?ppmprop=help For other questions or feedback, go to our Contact Us page. http://groups.msn.com/contact If you do not want to receive future e-mail from this MSN group, or if you received this message by mistake, please click the "Remove" link below. On the pre-addressed e-mail message that opens, simply click "Send". Your e-mail address will be deleted from this group's mailing list. mailto:[EMAIL PROTECTED]
