Skip to content

Desi banjara

  • IAAS vs PAAS vs SAAS – different types of cloud services Cloud services
  • Interview question: How does C# differ from C++? C# development
  • AWS DevOps Engineer Professional Exam Practice Questions – 5 AWS DevOps Engineer Professional Exam
  • How to stop time : Kiss Inspirational Travel Quotes
  • “Once a year, go someplace you’ve never been before.” – Dalai Lama Quotes
  • The best son in the world wishes the best mother in the world the best wishes for her birthday. Happy birthday ma. Birthday Wishes For Mom
  • Specs comparison – CANON 1300D VS CANON 1200D Cameras
  • “Always remember you are braver than you believe, stronger than you seem, and smarter than you think.” Christopher Robin Motivational & Inspirational Quotes

Interview question: What is encapsulation?

Posted on July 31, 2018 By DesiBanjara No Comments on Interview question: What is encapsulation?

[amazon_textlink asin=’8120352068|1491987650′ text=’Encapsulation’ template=’ProductLink’ store=’desibanjara22-21|desibanjaraco-21′ marketplace=’IN|UK’ link_id=’f15ac4fb-aa0b-11e8-8a76-3b617ede6a31′] is defined ‘as the process of enclosing one or more items within a physical or logical package’. In other words, Encapsulation is a process of binding data members (variables, properties) and member functions (methods) into a single unit. And Class is the best example of encapsulation.

In [amazon_textlink asin=’9351191494|1292024011′ text=’object oriented programming methodology’ template=’ProductLink’ store=’desibanjara22-21|desibanjaraco-21′ marketplace=’IN|UK’ link_id=’d8a66bef-a9ff-11e8-8a88-a17ed34aad39′], Encapsulation prevents access to implementation details. Through encapsulation a class can hide the internal details of how an object does something. A class can specify how accessible each of its members (variables, properties, and methods) is to code outside of the class or structure. Encapsulation simplifies the interaction between objects. An object can use another object without knowing all its data or how its data is maintained.

Example, an employee object might have name, address, and payment properties. If a HR object wants to use a employee object, it can request the name and address for the employee without needing to know the payment details of the employee object.

With the help of encapsulation, a class can change the internal implementation without hurting the overall functionality of the system.

[amazon_link asins=’9351190900,9352136640,8120352068,007070368X,1787287041,1788398076,1788478924,8126538791|1491988533,1484230175,1491987650,0735615683,1840787198,1430249358,1118336925,0131857258,1788398076,B01E9WKS2O’ template=’ProductGrid’ store=’desibanjara22-21|desibanjaraco-21′ marketplace=’IN|UK’ link_id=’4de50e02-94d2-11e8-9154-f5bdacb2b61e’]

C# development, IT/Software development Tags:C#, C# development, Encapsulation, IT/Software development, object oriented programming methodology

Post navigation

Previous Post: Interview question: What is the purpose of “as” operator in C#?
Next Post: C# Interview question: How encapsulation is implemented in C#?

Related Posts

  • Interview question: What is the difference between GetType() and typeof()? C# development
  • Interview question: What are the types of arrays in C#? C# development
  • Interview question: What are the namespaces in C#.NET? C# development
  • Interview question: What is the purpose of “as” operator in C#? C# development
  • C# Interview question: How encapsulation is implemented in C#? C# development
  • Interview question: What are nullable types in C#? C# development

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *



Archives

  • February 2023
  • February 2022
  • June 2021
  • March 2021
  • January 2021
  • December 2020
  • November 2020
  • October 2020
  • September 2020
  • July 2020
  • June 2020
  • April 2020
  • December 2019
  • December 2018
  • November 2018
  • October 2018
  • September 2018
  • August 2018
  • July 2018
  • June 2018
  • May 2018
  • April 2018
  • January 2018
  • September 2017
  • August 2017
  • July 2017
  • June 2017
  • May 2017
  • April 2017
  • August 2015
  • May 2015
  • April 2014
  • November 2013

Categories

  • Acer
  • Amazon AWS Certification Exam
  • Amazon Kindle
  • Android phones
  • ASP.Net MVC
  • ASP.NET Web API
  • AWS DevOps Engineer Professional Exam
  • AZ-300: Microsoft Azure Architect Technologies Exam
  • Azure Active Directory
  • Azure App Services
  • Azure Data Factory
  • Azure Logic Apps
  • Azure Mobile Apps
  • Azure Virtual Machine
  • Best Wishes Messages
  • birthday messages for boyfriend
  • Birthday messages For Girlfriend
  • Birthday Wishes
  • Birthday Wishes For Mom
  • Business
  • C# development
  • Cameras
  • Canon
  • Cloud
  • Cloud services
  • digital-cameras
  • Diwali
  • Entrepreneurship
  • eReaders
  • Family Quotes
  • Family Quotes
  • Friendship Quotes
  • Gadgets
  • Games
  • Get Well Soon Messages
  • GIT
  • Good Morning Wishes
  • Google
  • Gratitude Quote
  • Guru Nanak Jayanti
  • Halloween
  • Happiness Quote
  • Happy Diwali Wishes
  • Happy Independence Day Wishes
  • Happy New Year Wishes
  • HTC
  • HTC One
  • HTML
  • I Miss You Messages
  • Inspirational Quotes
  • Inspirational Travel Quotes
  • Interview questions
  • IT/Software development
  • Leadership Quote
  • Life lessons
  • Love Quotes
  • Love shayari
  • Messages
  • Microsoft AI-900 Certification Exam
  • Microsoft AZ-104 Certification Exam
  • Microsoft AZ-204 Certification Exam
  • Microsoft AZ-900 Certification Exam
  • Microsoft Azure
  • Microsoft Azure certifications
  • Microsoft Exam AZ-220
  • Microsoft Excel
  • Microsoft Office
  • Microsoft word
  • Mobile phones
  • Motivational & Inspirational Quotes
  • Nature Quotes
  • Nexus
  • Nikon
  • Pixels
  • PL-200: Microsoft Power Platform Functional Consultant Certification
  • PL-900: Microsoft Power Platform Fundamentals
  • postman
  • Quotes
  • Robin Sharma
  • Samsung Galaxy S5
  • Self improvement quotes
  • Self-Confidence Quote
  • SonarQube
  • Sony PlayStation 4
  • SQL
  • SQL Server
  • Success Quotes
  • Travel Quotes
  • Uncategorized
  • Uplifting Quotes
  • WCF (Windows Communication Foundation)
  • Web development
  • Wishes
  • Wishes for Newborn Baby

Meta

  • Log in
  • Entries feed
  • Comments feed
  • WordPress.org



Recent Posts

  • Azure Data Factory
  • What is Azure Active Directory?
  • Azure Virtual Machine
  • Azure Logic Apps
  • Azure Mobile Apps

Recent Comments

  • Yosianus on Error while sending json model in POST request to web API service using postman
  • Microsoft AZ-220 Certification Exam Practice Questions- Part 2 Microsoft Exam AZ-220
  • Microsoft AZ-900 Certification Exam Practice Questions – 3 Microsoft AZ-900 Certification Exam
  • AWS DevOps Engineer Professional Exam Practice Questions – 12 AWS DevOps Engineer Professional Exam
  • “I travel a lot; I hate having my life disrupted by routine.” – Caskie Stinnett Quotes
  • Thank you for being strong enough to say no when you know it won’t be good for me at all. Thanks for being soft enough to always say yes whenever you realize it is for my own good. I love you Mom! Birthday Wishes For Mom
  • Microsoft PL-900 Certification Exam Practice Questions – 2 PL-900: Microsoft Power Platform Fundamentals
  • Microsoft AZ-900 Certification Exam Practice Questions – 7 Microsoft AZ-900 Certification Exam
  • 120 best family quotes Family Quotes

Copyright © 2023 Desi banjara.

Powered by PressBook News WordPress theme