👤

what is the difference between polymorphism and encapsulation in java?

Sagot :

Answer:

Polymorphism allows program code to have different meaning or functions while encapsulation is the process of keeping classes private so they cannot be modified by external