Search...
FAQs
Subscribe
Pie
FAQs
Recent topics
Flagged topics
Hot topics
Best topics
Search...
Search within OCPJP
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:
Programmer Certification (OCPJP)
type of relationship - IS -A or HAS-A
sachin jauhari
Greenhorn
Posts: 15
posted 18 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
public class Species { }
public class Animal {private Species species}
What type of relationship is between Species & Animal,IS -A or HAS-A ?
Kayalvizhi Umashankar
Greenhorn
Posts: 25
posted 18 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Animal HAS-A Species
Kayal
A Kumar
Ranch Hand
Posts: 980
posted 18 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Hi,
Can u use the same classes and show me the
"IS A " relationship..
Tx
sachin jauhari
Greenhorn
Posts: 15
posted 18 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
class Species() {}
class Animal extends Species(){}
Now the relationship is of type IS-A
Animal IS-A Species
reply
reply
Bookmark Topic
Watch Topic
New Topic
Boost this thread!
Similar Threads
How the fillowing maintains IS-A ralation
doubt in IS-A relationship
Object Orientation
Help plz
Sun qstns - "has a" relationship
More...