C# is a modern object-oriented programming language (OOPL) just like Java. This means that it upholds the three pillars of object-oriented programming encapsulation, inheritance, and polymorphism.