----------------------------------------------------------- New Message on MumbaiUserGroup
----------------------------------------------------------- From: aamirOnline Message 4 in Discussion Hi I would like to clear one thing that, an interface is not an object neither it belongs to ASP.Net, Its a pure object oriented concepts, its a definition for implemented classes. According to interface defination An interface defines a contract. A class or struct that implements an interface must adhere to its contract For example, if you want to define and employee you will create an IEmployee interface. which will have all the necessary attributes and operations related to employee. Once the definition is clear and complete you will create an Employee class by implementing IEmployee interface... If you want to compare this with real life situation. I will give you an example of Car. Can you call car like Maruti 800 a bike? no, you can not call car a bike. Because you have some definition in you mind about car which you dont see in a bike. Like a car should have 4 Wheel, a Body, Strearing Wheel etc.... Right? The same way you can not say that a class ABC is an IEmployee because class ABC is not derived from interface IEmploee, you can say class Employee is an IEmployee because it has implemented IEmployee interface and has all the attributes and operations of IEmployee... Hope you are now cleared with what an interface is Regards M Aamir Maniar ----------------------------------------------------------- To stop getting this e-mail, or change how often it arrives, go to your E-mail Settings. http://groups.msn.com/mumbaiusergroup/_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]
