hey i am beginner in java. i am not able to resolve differences in interface and with abstract class. do abstract class have methods defined??does those methods have body?? if so for abstract classes do not create objects, how they r invoked??
ravikiran032
-7
Light Poster
Recommended Answers
Jump to PostAn interface is a static context template that classes can implement. The methods within the interface have no body and must be of public access.
In addition, interfaces can also contain "constants" in which data is declared and defined.
An example--
public interface MyInterface{ public …
All 4 Replies
Alex Edwards
321
Posting Shark
jasimp
commented:
great explanations
+8
ravikiran032
-7
Light Poster
Alex Edwards
321
Posting Shark
jack239
3
Newbie Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.