What is the is a and has a relation ship in oops concept in
java?
Answer Posted / raghava
OOOOOO!NOooooooooo.
is a relationship is (inheritence)
has a relationship is (composition or Assocation)
Example:
Has a relation
public class Address
{
String street;
String city;
.......
}
public class Person
{
String name;
Address address; //has a relationship
}
| Is This Answer Correct ? | 82 Yes | 6 No |
Post New Answer View All Answers
What are locale settings?
How do you do exponents in java?
Can we override constructor?
describe method overloading
What does \ mean in regex?
What are "class access modifiers" in Java?
What is the full name of java?
Is it safe to install java on my computer?
What is string english?
Why string objects are immutable in java?
What are accessor methods in java?
How do you create immutable object in java?
What is the difference between a loader and a compiler?
How do you escape in java?
What is Java Annotations?