How would you represent the relationship “Man has a best friend - ProProfs Discuss
Advertisement

How would you represent the relationship “Man has a best friend who is a Dog” in java programming language?

How would you represent the relationship “Man has a best friend who is a Dog” in java programming language?<br/>

Change Image    Delete

Asked by Anand, Last updated: Nov 09, 2024

+ Answer
Request
Question menu
Vote up Vote down

1 Answer

John Smith

John Smith

John Smith
John Smith

Answered Apr 08, 2017

Class Man { private Dog bestFriend; }
upvote downvote
Reply 

Advertisement
Advertisement
Search for Google images Google Image Icon
Select a recommended image
Upload from your computer Loader
Image Preview
Search for Google images Google Image Icon
Select a recommended image
Upload from your computer Loader
Image Preview
Search for Google images Google Image Icon
Select a recommended image
Upload from your computer Loader

Email Sent
We have sent an email to your address "" with instructions to reset your password.