Click here to Skip to main content
15,894,825 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
dear friends,
I have a problem in using interface and abstract. let's give you brief details what i have. I have an interface name is "Account" in which i have some abstract methods which implemented by abstract class name is "AccountImpls". now i want to use "Account" interface by class "AccountFactory" in which i create a method "CreateAccount" that have "Account" interface as a return type. So when i create object of "Account" interface class then it's automatic implement all the abstract method which inside the "account" class. now can any one please help me that how can i implement that methods? or any one have any examples for that type of problems? I have a uml diagram of that but how can i show you by this? if any idea than tell me for that also?
Thank you in advance.....
Posted

1 solution

Check these out:

http://docs.oracle.com/javase/tutorial/java/IandI/usinginterface.html[^]

http://www.tutorialspoint.com/java/java_interfaces.htm[^]

Do a thorough reading, hope it helps clear your concepts.

Azee...
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900