CrazyEngineers
  • encapsulation vs abstraction

    pratap singh, upendra

    pratap singh, upendra

    @pratap-singh-6xlmve
    Updated: Oct 27, 2024
    Views: 2.5K
    Hi friends,
    In context to object oriented programming: -
    • What is the difference between data abstraction and data encapsulation?Are they both implementing information hiding?
    • 'A class encapsulates the methods and data members defined in it'. So, is encapsulation not representing a simpler view of a class(in terms of its functions and data members)?How does the concept of security comes up then?
    • Actually it should be data abstraction representing secure data access since it is hiding low level details of implementation. Am I right?
    0
    Replies
Howdy guest!
Dear guest, you must be logged-in to participate on CrazyEngineers. We would love to have you as a member of our community. Consider creating an account or login.
Replies
  • rahul69

    MemberJun 3, 2015

    Encapsulation implements abstraction. ie you encapsulate things to abstract the underlying parts.
    😀
    Are you sure? This action cannot be undone.
    Cancel
  • pratap singh, upendra

    MemberJun 3, 2015

    Is it fair enough to say that encapsulation apart from implementing abstraction also puts methods and data members within the class?
    Are you sure? This action cannot be undone.
    Cancel
Home Channels Search Login Register