Geeks Talk

Prepare for your Next Interview




Confusion with ABSTRACT and INTERFACE

This is a discussion on Confusion with ABSTRACT and INTERFACE within the Java forums, part of the Software Development category; Question asked by visitor anil I have a bit confusion with ABSTRACT and INTERFACE. What does it means .. Where it is used... When should used... How does it work.... Tell ...


Go Back   Geeks Talk > Software Development > Java

Register FAQ Members List Calendar Mark Forums Read
  #1 (permalink)  
Old 04-17-2007
Expert Member
 
Join Date: Feb 2007
Posts: 1,279
Thanks: 0
Thanked 164 Times in 138 Posts
Geek_Guest is on a distinguished roadGeek_Guest is on a distinguished road
Confusion with ABSTRACT and INTERFACE

Question asked by visitor anil

I have a bit confusion with ABSTRACT and INTERFACE.
What does it means ..
Where it is used...
When should used...
How does it work....
Tell me clear in all possible way
Reply With Quote
The Following User Says Thank You to Geek_Guest For This Useful Post:
Sponsored Links
  #2 (permalink)  
Old 04-18-2007
Expert Member
 
Join Date: Dec 2006
Location: Chennai
Posts: 197
Thanks: 2
Thanked 16 Times in 14 Posts
Barbie is on a distinguished road
Re: Confusion with ABSTRACT and INTERFACE

This will be helpful.

http://mindprod.com/jgloss/interfacevsabstract.html
Reply With Quote
  #3 (permalink)  
Old 05-07-2007
Junior Member
 
Join Date: May 2007
Location: bangalore
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
sathya_raj2 is on a distinguished road
Re: Confusion with ABSTRACT and INTERFACE

Quote:
Originally Posted by Geek_Guest View Post
Question asked by visitor anil

I have a bit confusion with ABSTRACT and INTERFACE.
What does it means ..
Where it is used...
When should used...
How does it work....
Tell me clear in all possible way
Abstract classes are used if we want to have some method definition to be in subclass.so that the implemented subclass use that definition.
Suppose if we dont know the defintion ,we only know the syntaxwe declare that method as abstract.
Abstract class may have both abstract& concrete methods in it.
so abstract classes are uses if we know definition of some methods & dont know the def of some methods
As the abstact classes are classes we cant implment multiple inheritence.
For this feature interfaces cam ein to existence.
interfaces consists of all abstract methods.
so we can implment more than one interface feature in our class.
Is it ok??????????????
Reply With Quote
Reply

  Geeks Talk > Software Development > Java


Thread Tools
Display Modes


Similar Threads

Thread Thread Starter Forum Replies Last Post
IP addresses:confusion vmshenoy Networking 12 1 Week Ago 11:42 PM
Abstract, final and static keywords Geek_Guest Java 2 12-25-2007 09:48 AM
difference between abstract class and interface manipalreddy.s Java 12 10-25-2007 07:06 AM
COM interface JobHelper QTP 1 03-30-2007 02:07 PM
interface..... psuresh1982 Java 1 01-08-2007 01:40 PM


All times are GMT -4. The time now is 01:06 AM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0
Copyright © 2008 GeekInterview.com. All Rights Reserved