Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

one uncertainty on single inheritance in Universal-Image-Loader #569

Closed
bytebeats opened this issue Mar 19, 2014 · 3 comments
Closed

one uncertainty on single inheritance in Universal-Image-Loader #569

bytebeats opened this issue Mar 19, 2014 · 3 comments
Labels

Comments

@bytebeats
Copy link

Recently, I was reading the source codes of Universal-Image-Loader, And I found an interesting question on inheritance in Java. We know that the multiple inheritance is not allowed in Java. Java designers replaced the concept of multiple inheritance by that of interface. In the release 1.9.1 of Universal-Image-Loader, the interface called BlockingDeque in the package of com.nostra13.universalimageloader.core.assist.deque extends two parent class, BlockingQueue and Deque, but Eclipse does't show any wrong information about it. So I am confused about it. Does someone else ever notice this??

@nostra13
Copy link
Owner

BlockingQueue and BlockingQueue are interfaces. Java allow "multiple inheritance" of interfaces, i.e. class can implement multiple interfaces and interface can extend multiple interfaces.

@bytebeats
Copy link
Author

Oh, thanks for answers, I have learnt a lot from this question. Meanwhile, thanks for your great works on UIL~

@nostra13
Copy link
Owner

You're welcome.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants