Difference: 'uses', 'extends', 'includes'

Answer Posted / prasad

"X uses Y" indicates that the task "X" has a subtask "Y";
that is, in the process of completing task "X", task "Y"
will be completed at least once.

"X extends Y" indecates that "X" is a task of the same type
as "Y", but "X" is a special, more specific case of
doing "Y". That is, doing X is a lot like doing Y, but X
has a few extra processes to it that go above and beyond
the things that must be done in order to complete Y.

Is This Answer Correct ?    41 Yes 7 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are abstract methods?

585


Explain about inheritance?

639


What is operator overloading and polymorphism?

549


What is the use of finalize method?

577


Can you instantiate an abstract class and what is an inner class?

551






What is operator overloading?

722


Explain about the design phase?

589


What is the default access modifier in a class?

563


Difference between encapsulation and data hiding ?

507


What is the main use of message metaphor in object-oriented programming?

665


What is virtual?

731


What is a final variable?

592


Why we use oops concepts? What is its advantage?

562


What is the use of destructive method?

541


What is the difference between a class and an object?

530