Wednesday, 27 August 2014

Asp.Net Interview Qustion And Answers

Qus.1:  What is  OOP ?

Ans:-       The object oriented programming (OOP) is a programming model Programs are organized around object and data rather than action and logic. 


Qus:2  What is an Abstraction ?

Ans:-   Abstraction means to show only the necessary details to the clients of the object .
      Abstraction is the process of hiding the working style of an object, and showing the information of an object in understandable manner.

Qus:3  What is an Encapsulation ?

Ans:-   Encapsulation means hiding the internal details of an object, i.e. how an object does something.

Encapsulation prevents clients from seeing its inside view, where the behaviour of the abstraction is implemented.

Encapsulation is a technique used to protect the information in an object from the other object.

Hide the data for security such as making the variables as private, and expose the property to access the private data which would be public.
So, when you access the property you can validate the data and set it.

Qus:4  What is inheritance ?

Ans:-  When a class acquire the property of another class is known as inheritance.
Inheritance is process of object reusability.
For example, A Child acquire property of Parents.


Qus:5 What is Polymorphism ?

Ans: Polymorphism means one name many forms.
One function behaves different forms.
In other words, "Many forms of a single object is called Polymorphism."



fig 1.2



4 comments: