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 is the default access modifier in a class?

561


Name some languages which have object oriented language and characteristics?

560


Can an interface have an inner class?

608


Give any criteria when you use an abstract class and an interface?

559


What is a ternary operator?

550






How to define an interface?

580


Explain the purpose of composition.

603


How will you define abstract classes?

585


What is the difference between an interface and abstract class?

574


Can you define OOP and principles of OOP?

565


Define exceptions?

529


Why is OOP good?

571


Do we require a parameter for constructors?

550


What is meant by “abstract interface”?

602


What is serialization? How do we implement serialization actually?

494