Computer Science, asked by jaagruthiadka, 8 months ago

difference between polymorphism and encapsulation​

Answers

Answered by gotekarmanthan2
4

Answer:

Difference between polymorphism and encapsulation. ... Packaging data and methods together is called encapsulation. The object hides its data from other objects and allows the data to be accessed via its own methods. Polymorphism means the ability to take more than one form.

Answered by goutamipurra
8

Answer:

Encapsulation

  • The wrapping up the data and methods into a single unit (called class) is known as encapsulation.
  • That is, the data and methods are given in the class defination.
  • Data encapsulation is the most striking feature of a class.

Polymorphism

  • Poly means many Morph means Form .
  • Polymorphism means manyforms.
  • Polymorphism is the characteristic feature,that enables to co-exist in more than one form.
  • Example:It allows the single method to perform different actions based on the parameters.

Explanation:

Similar questions