Search...
FAQs
Subscribe
Pie
FAQs
Recent topics
Flagged topics
Hot topics
Best topics
Search...
Search within OO, Patterns, UML and Refactoring
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:
OO, Patterns, UML and Refactoring
How do we solve diamand problem in java
Ashuthosh san
Ranch Hand
Posts: 35
posted 14 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Hi All,
How do i solve a diamond problem. Eg. I am giving the example in general . I have a class A, there are two other classes B and C which extends A and there is one more class D which extends both B and C. How do i deisgn this kind of scenario.
Regards
Asha
Pushkar Choudhary
Rancher
Posts: 425
I like...
posted 14 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
A
Java
class cannot extend more than one Java classes. For more information,
read this
.
David Newton
Author
Posts: 12617
I like...
posted 14 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
There *is* no diamond problem in Java.
Ashuthosh san
Ranch Hand
Posts: 35
posted 14 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
I have one problem i have two classes A and B , i need both functionality of A and B in C. How do i do it?
David Newton
Author
Posts: 12617
I like...
posted 14 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Probably composition.
pratik gaurav
Greenhorn
Posts: 16
I like...
posted 11 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
David Newton wrote:
Probably composition.
sir can you please explain us Probably Composition
So there I was, trapped in the jungle. And at the last minute, I was saved by this tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
reply
Bookmark Topic
Watch Topic
New Topic
Boost this thread!
Similar Threads
Polymorphism Concepts
Help me to resolve this in Java
I think it should be false.
super.super
Interfaces in java
More...