What is the is a and has a relation ship in oops concept in
java?

Answer Posted / yogeshwar

is a
Relationship between a Class and its object.
Eg.
Class Car { ... }

Car maruti800=new Car();

here maruti800 is a car.
Relationship between Car and maruti800 ==> is a

the Person and Address is a suitable example for has a

Is This Answer Correct ?    2 Yes 11 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to check if linked list contains loop in java?

459


What is api data?

546


What about method local inner classes or local inner classes in java?

559


What is data movement?

665


What is variable declaration and definition?

544






What is predicate in java?

560


What is the abstraction?

594


What is java command?

574


How do you use find and replace?

515


What is consumer in java?

526


hr interview how many minutes asking question

1571


What is unsigned char?

627


What is the difference between an object-oriented programming language and object-based programming language?

576


What does replaceall do in java?

490


Is a method a procedure?

559