Join WhatsApp Channel Join Now
Join WhatsApp Group Join Now
Telegram Channel Join Now

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.
encapsulation-images

Definition of Encapsulation:

                Definition of Encapsulation is “Wrapping up data member and method together into a single unit”
                                OR
                “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

Conclusion:
                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.

2 comments:

Tanzania ambassador's Redeemed Christians Church TARCC said...

What are the disadvantages of encapsulation ten points

Tanzania ambassador's Redeemed Christians Church TARCC said...

1What are the different between paper records and records preservation ten points

2 difference between electronic records and paper life cycle

 
close

Join Telegram Channel

Join FreshersJobsUpdates - Your Job Search End Here

Click Here To Join Telegram Channel