-
Junior Member
Re: Diff B/W Interface & Abstract class
you can define the body of abstract method in abstract class but u cannot define the body of method in interface.
-
Junior Member
Re: Diff B/W Interface & Abstract class
Hi Sree,
Abstract class and interfaces are completely different.
1) In an abstract class, you may also have some concrete methods( fully implemented. It can have all its methods as concrete, yet be declared as abstract) , but in an interface, all the methods ought to be abstract.
2)Abstarct class can never be instantiated, but you can indirectly instantiate an interface by instantiating the class which implements it and then use the its methods.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules