Tuesday, 24 March 2015

What is Encapsulation, Real Time Example of Encapsulation, Advantages & Disadvantages

                In Oops concept 4 parts Encapsulation, Inheritance, Abstraction, Polymorphism are inter related parts. In these four concepts except Encapsulation all are completed in the previous articles. The completed articles are

“What Is Inheritance In Oops? Real Time Example? Program ? Advantages And Disadvantages?”

“What is Polymorphism? Types of Polymorphism? Real Time Examples”

“What is Abstraction? Real Time Example for Abstraction, Advantages and Disadvantages of Abstraction”

                Now freshers junction blog explains What is Encapsulation, Real Time Example of Encapsulation, Advantages & Disadvantages.

Definition of Encapsulation:

                Definition of Encapsulation is “Wrapping up data member and method together into a single unit”
                “Writing operations and methods stored in a single class”

Real Time example of Encapsulation:

                The best example of car driving, car driver knows how to start car by pressing start button. The driver doesn't know what happened inside when pressing start button. Here the starting process is hidden from driver. So this process can be called as “starting process is encapsulated from driver”

Advantages of Encapsulation:

- The main advantage of Encapsulation is, when using objects, the object need not reveal all its attributes and behaviors.
- Code changes can be made independently
- Increases usability

Disadvantages of Encapsulation:

- The main drawback or disadvantage of encapsulation is that it relies heavily on standards to maintain readability

                If you have any queries on this topic “What is Encapsulation, Real Time Example of Encapsulation, Advantages & Disadvantages”, comment here. Freshers junction blog is always here to help you.

You may also search in Google as:
What is Encapsulation, Encapsulation advantages & disadvantages. Real time example of Encapsulation, encapsulation definition, advantages of Encapsulation, disadvantages of Encapsulation, Encapsulation real time example, general example of Encapsulation, Encapsulation in java, Encapsulation in .Net, Encapsulation in Oops, definition of Encapsulation. All about Encapsulation is over here.

Freshers, Register Here

share facebook

Enter Your Email below to get Daily Job Alert in Your Mailbox