Search...
FAQs
Subscribe
Pie
FAQs
Recent topics
Flagged topics
Hot topics
Best topics
Search...
Search within Beginning Java
Search Coderanch
Advance search
Google search
Register / Login
Post Reply
Bookmark Topic
Watch Topic
New Topic
programming forums
Java
Mobile
Certification
Databases
Caching
Books
Engineering
Micro Controllers
OS
Languages
Paradigms
IDEs
Build Tools
Frameworks
Application Servers
Open Source
This Site
Careers
Other
Pie Elite
all forums
this forum made possible by our volunteer staff, including ...
Marshals:
Campbell Ritchie
Jeanne Boyarsky
Ron McLeod
Paul Clapham
Liutauras Vilda
Sheriffs:
paul wheaton
Rob Spoor
Devaka Cooray
Saloon Keepers:
Stephan van Hulst
Tim Holloway
Carey Brown
Frits Walraven
Tim Moores
Bartenders:
Mikalai Zaikin
Forum:
Beginning Java
Java beginner- interface
Karthik Soundararajan
Greenhorn
Posts: 20
posted 18 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Hai friends i am new to
java
theoratically i know what interface is.but
i want know some simple examples to create an interface and extend a more then one interface in an interface
thanks karthik
Arun Kumarr
Ranch Hand
Posts: 662
I like...
posted 18 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Hai Karthik,
Welcome to Java Ranch!!!
A very Simple Example:
public interface InterfaceA { void interfaceMtdA(); } interface InterfaceB { void interfaceMtdB(); } class ImplementsA implements InterfaceA, InterfaceB{ void interfaceMtdA(){ System.out.println("Implemented method in InterfaceA"); } void interfaceMtdB(){ System.out.println("Implemented method in InterfaceB"); } }
If you are not laughing at yourself, then you just didn't get the joke.
Pradeep Kadambar
Ranch Hand
Posts: 148
posted 18 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Hi,
Please learn your Java at the right place i.e. @
java.sun.com
Do your homework before posting it on the ranch.
Consider Paul's
rocket mass heater
.
reply
reply
Bookmark Topic
Watch Topic
New Topic
Boost this thread!
Similar Threads
Reason to create inner class in an interface
Interface Question
What is Interface
Is it crutial to use the observable interface?
Design Opinion
More...