I am sure if you google it , u can find many points. Abstract classes n interface wont have any object on its own.
Abstract class acts base class during inheritance. Interface contains a predefined layout for a class. In abstract class, we can define what a function should do whereas in interface, we can not define what a function should do. While inheriting(or implementing) there is no need to override all the functions in a abstract class but in case of interface, you need to override all the functions. In C++, we dont have the concept of interface. But we can indirectly implement it by having all the methods in ur class as pure virtual functions. In java, we have a separate concept called interface which is used to indirectly implement multiple inheritance.We can inherit abstract class whereas interface can only be implemented. On Fri, Mar 11, 2011 at 8:32 AM, Praveen <praveen200...@gmail.com> wrote: > plz refer head first java > > > On Thu, Mar 10, 2011 at 11:36 PM, nishaanth <nishaant...@gmail.com> wrote: > >> Abstract classes can have non abstract methods. Derived classes must >> implement the abstract methods. >> >> But Interfaces have only abstract method definitions. Implementing classes >> must implement all the method definitions in the interface. >> >> >> >> >> >> On Thu, Mar 10, 2011 at 11:13 PM, LALIT SHARMA <lks.ru...@gmail.com>wrote: >> >>> google it .... >>> >>> >>> On Thu, Mar 10, 2011 at 10:49 PM, Sudhir mishra < >>> sudhir08.mis...@gmail.com> wrote: >>> >>>> Ques: What is Abstract Classes? >>>> Ques:What is interfaces? >>>> Ques:What is difference between abstract classes and interfaces? >>>> Ques:Give an example where do you use interfaces and abstract classes? >>>> >>>> -- >>>> You received this message because you are subscribed to the Google >>>> Groups "Algorithm Geeks" group. >>>> To post to this group, send email to algogeeks@googlegroups.com. >>>> To unsubscribe from this group, send email to >>>> algogeeks+unsubscr...@googlegroups.com. >>>> For more options, visit this group at >>>> http://groups.google.com/group/algogeeks?hl=en. >>>> >>> >>> >>> >>> -- >>> Lalit Kishore Sharma, >>> >>> IIIT Allahabad (Amethi Capmus), >>> 6th Sem. >>> >>> -- >>> You received this message because you are subscribed to the Google Groups >>> "Algorithm Geeks" group. >>> To post to this group, send email to algogeeks@googlegroups.com. >>> To unsubscribe from this group, send email to >>> algogeeks+unsubscr...@googlegroups.com. >>> For more options, visit this group at >>> http://groups.google.com/group/algogeeks?hl=en. >>> >> >> >> >> -- >> S.Nishaanth, >> Computer Science and engineering, >> IIT Madras. >> >> -- >> You received this message because you are subscribed to the Google Groups >> "Algorithm Geeks" group. >> To post to this group, send email to algogeeks@googlegroups.com. >> To unsubscribe from this group, send email to >> algogeeks+unsubscr...@googlegroups.com. >> For more options, visit this group at >> http://groups.google.com/group/algogeeks?hl=en. >> > > > > -- > B. Praveen > > -- > You received this message because you are subscribed to the Google Groups > "Algorithm Geeks" group. > To post to this group, send email to algogeeks@googlegroups.com. > To unsubscribe from this group, send email to > algogeeks+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/algogeeks?hl=en. > -- You received this message because you are subscribed to the Google Groups "Algorithm Geeks" group. To post to this group, send email to algogeeks@googlegroups.com. To unsubscribe from this group, send email to algogeeks+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/algogeeks?hl=en.