Encapsulation: hiding data using getters and setters etc.
Abstraction: hiding implementation using abstract classes and interfaces etc.
More Related Contents:
- What is the difference between an interface and a class, and why I should use an interface when I can implement the methods directly in the class?
- What is abstraction in C#? [duplicate]
- Getters and Setters are bad OO design? [duplicate]
- How Function overloading saves memory [closed]
- How to capture value OOPS & Generic [closed]
- Program * does not contain a static ‘Main’ method suitable for an entry point
- Why not inherit from List?
- When should you use ‘friend’ in C++?
- Difference between abstraction and encapsulation?
- How can I call the ‘base implementation’ of an overridden virtual method? [duplicate]
- Static vs non-static class members
- Why are private fields private to the type, not the instance?
- How to choose between private and protected access modifier to encapsulate members between base and childs classes?
- How do I target attributes for a record class?
- Why can’t I declare C# methods virtual and static?
- When should I choose inheritance over an interface when designing C# class libraries? [closed]
- Multiple Aggregates / Repositories in one Transaction
- The difference between virtual, override, new and sealed override
- IEnumerable vs IReadonlyCollection vs ReadonlyCollection for exposing a list member
- Cast interface to its concrete implementation object or vice versa?
- Is there a much better way to create deep and shallow clones in C#?
- Reference type variable recycling – is a new reference variable created every loop in a loop if declared therein?
- Can you explain Liskov Substitution Principle with a good C# example? [closed]
- base() and this() constructors best practices
- method without access modifier
- Using Reflection to create a DataTable from a Class?
- What is the difference between static methods in a Non static class and static methods in a static class?
- Are global static classes and methods bad?
- Using generics with XmlSerializer
- Why do both the abstract class and interface exist in C#?