Encapsulation
is one of the major properties of OOP. How is it implemented in software terms?
Encapsulation is a way to implement
data hiding and abstraction by wrapping up data and associated functions into
single unit called object.
An object binds
together data and its associated functions under one unit thereby enforcing
encapsulation as encapsulation means wrapping up data and associated functions
together into a single unit.
What is
polymorphism?
It is the ability
of representing a thing in more than one form. Polymorphism is used in
constructor overloading.
No comments:
Post a Comment