• Top Posts

    Explain Abstraction in C# ?


    • Abstraction is one of the OOP concepts. It is used to display only the essential features of the class and hides the unnecessary information.
    • Let us take an Example of a Car:
      A driver of the car should know the details about the Car such as color, name, mirror, steering, gear, brake, etc. What he doesn't have to know is an Internal engine, Exhaust system.
      So, Abstraction helps in knowing what is necessary and hiding the internal details from the outside world. Hiding of the internal information can be achieved by declaring such parameters as Private using the private keyword.

    No comments

    Post Top Ad

    ad728

    Post Bottom Ad

    ad728