Sunday, September 13, 2020

OOP's Interview Question: What is OOP in C#?

Here i am discussing about, "OOP's related inter question's are asked up to fresher level".

    What is OOP in C#?

    1. C# is an Object Oriented Programming language.
    2. OOP includes classes, objects, overloading, encapsulation, data hiding, and inheritance.
    3. The fundamental idea behind OOP is to combine into a single unit both data and the methods that operate on that data, such units are called an object.
    4. All OOP languages provide mechanisms that help you implement the object-oriented model. They are encapsulation, inheritance, polymorphism and reusability.

    What is Object Oriented Programming in C#?

    1. OOP stands for Object-Oriented Programming.
    2. OOP is a Procedural programming is about writing procedures or methods that perform operations on the data,
      while object-oriented programming
       is about creating objects that contain both data and methods.

    Why C# is Object Oriented Programming?

    1. C# provides full support for Object-Oriented Programming.
    2. C# includes abstraction, encapsulation, inheritance, and polymorphism.
    3. Abstraction means hiding the unnecessary details from type consumers.
    4. Encapsulation means that a group of related properties, methods, and other members are treated as a single unit or object.


    Knowing these sample questions are asked up to fresher level. Simple techniques can make your code easier to understand & simpler to read. Hope this will helpful for you. If there any confusion. Please comment. I will help you.

    No comments:

    Post a Comment