what abstraction,encapsulation,inheritance? Define with example.,Java, C ,C++, ASP, ASP.net C# ,Struts ,Questions & Answer, Struts2, Ajax, Hibernate, Swing ,JSP , Servlet, J2EE ,Core Java ,Stping, VC++, HTML, DHTML, JAVASCRIPT, VB ,CSS, interview ,questions, and answers, for,experienced, and fresher
what abstraction,encapsulation,inheritance? Define with example.

Abstraction:-Abstraction is the process of hiding the details and  exposing only the essential features of a particular concept or object.  
Abstraction is another good feature of OOPS. Abstraction means to show only the necessary details to the client of the object
Example:-A simple example is using a base class "Animal", with a virtual function "Walk". In the case two-legged versus four-legged animals, both of them walk, but the actual mechanics are different. The "Walk" method abstracts the actual mechanics behind the walking that each "Animal" does.
2nd example:-A class called Animal.
It has properties like ears,colour, eyes but they are not defined.
It has methods like Running(), Eating(), etc. but the method does not have any body, just the definition.

Encapsulation:-Encapsulation is the term given to the process of hiding all the details of an object that do not contribute to its essential characteristics.its wrapping of data and members in a single unit.Encapsulation is a process of hiding all the internal details of an object from the outside world .
1:- Encapsulation is the ability to hide its data and methods from outside the world and only expose data and methods that are required .
2.Encapsulation gives us maintainability, flexibility and extensibility to our code. 
3.Encapsulation provides a way to protect data from accidental corruption .
4.Encapsulation gives you the ability to validate the values before the object user change or obtain the value .
5.Encapsulation allows us to create a "black box" and protects an objects internal state from corruption by its clients.
6.Encapsulation is the technique or process of making the fields in a class private and providing access to the fields using public methods.

Example:-cars and owners...
all the functions of cars are encapsulated with the owners..
No one else can access it...
Inheritance:-In object-oriented programming (OOP), Inheritance is a way to compartmentalize and reuse code by creating collections of attributes and behaviors called objects which can be based on previously created objects. In classical inheritance where objects are defined by classes.
classes can inherit other classes. The new classes, known as Sub-classes (or derived classes), inherit attributes and behavior of the pre-existing classes, which are referred to as Super-classes.
the process of deriving one class from parent class called .

Seccond Example:-
Kingfisher jet
Flying Things

More interview questions and answers
What is the exact difference in between Unicast and Multicast object ? Where we will use ?
Why there are some null interface in java ? What does it mean ?
What is latest versions in JAVA related areas ?
What is mean by class loader ? How many types are there? When will we use them ?
public static void main - Explain?
What is difference between String & StringBuffer?
What is Wrapper class. Is String a Wrapper Class?
What is Default modifier in Interface?
Can abstract be declared as Final?
Can we declare variables inside a method as Final Variables?
How can a dead thread be started?
Can Applet have constructors?
What is Checked & Unchecked exception?
Explain. Two types of multi-tasking.
Explain I/O Filter.
Can applet in different page communicate with each other?
How many nodes do a complete full binary tree with 10 leaves have?
What is server code and client code in C#?
Why we using in header file using system and more header file is in C# what is difference between and all header file ?
Give Real life examples of polymorphisms, encapsulation and inheritance?
What is partial class?what is its advantage.
What is the name of c#.net compiler?
What is an object?
What is a class?
what abstraction,encapsulation,inheritance? Define with example.
What is mean "Death of Diamod"?
what is the main difference between delegate and an event in c#?
How to use Hash Table,ArrayList in c# ?Explain with example.
What is the difference between shadow and override ?
What is the top .NET class that everything is derived from?
When we can inherit a protected class-level variable?
Does C# support multiple inheritance?
How do you inherit from a class in C#?
What is an abstract class?
What does the keyword virtual mean in the method definition?
How's method overriding different from overloading?
Describe the accessibility modifier protected internal.
Are private class-level variables inherited?
When you inherit a protected class-level variable? Who is it available to?
What's the implicit name of the parameter that gets passed into the class' set method?
Is it mandatory to implement all the methods which are there in abstract class if we inherit that abstract class?
What is the difference between const and static read-only?
How to fill datalist usinf XML file and how to bind it,code behind language is c# ?
What is advantase of serialization?
How we handle sql exceptions?
What is the class that handles SqlServer exceptions?
What is indexer?
where indexer is used ?
Can we inherit the java class in C# class?If Yes then how?
Every statement in C# must end with?
The C# code files have an extension ?
How you can compile a C# program using command promt?
ASP.NET web pages can be programmed in C#?
All the .NET languages have the following in common?
IL code compiles to ?
Which is the first level of compilation in the .NET languages?
What is IL?
What is CTS?
What is the namespace used for Reflection?
To access attributes, the waht is used?
List all collections in C#.
How you can write Unsafe code in C# and in which block?
Which method is used to force the garbage collector?
Each process in a 32 bit Windows environment has the what amount of virtual memory will available?
What is correct syntax for defining a delegate?
What is syntax of inherit a class?
How do you deploy an assembly?
How namespace is used for globalization?
How does a running application communicate or share data with other application running in different application domains?
What are difference between shadow and override?
We have an event handler called MyEvent and we want to link the click event of control, MyButton, to use MyEvent, what is the code that will like them together?
Which debugging window allows you to see the methods called in the order they were called?
The auto,local ,watch
What is wrapper class? Is it available in c#?
What is protected internal class in C# ?
Which keyword is used of specify a class that cannot inherit by other class?
Can we create the instance for abstract classes?
Can we use Friend Classes or functions in C#?
How we can use inheritance and polymorphisms in c# programming?
How to find exceptions in database?Give examples .
How can objects be late bound in .NET?
Where we can use DLL made in C#.Net?
What Datatypes does the RangeValidator Control support?
Constructor is the method which is implicitly created when ever a class is instantiated. Why?
Why multiple Inheritance is not possible in C#?
Why strings are immutable?
This is a Regular expression built for parsing string in vb.net and passed to Regex class. Dim r As Regex = New Regex(",(?=([^""]*""[^""]*"")*(?![^""]*""))") What is C# equivalent for this regular exp
How to convert ocx into DLL ?
What is the main difference between pointer and delegate with examples?
What is object pooling ?
How do i read the information from web.config file?
What is the default Function arguments?
What is XML Schema?
How can we check whether a dataset is empty or not in C#.net
Is it possible to inherit a class that has only private constructor?
How do you choose 1 entry point when C# project has more Main( ) method?
What is C# reserved keyword ?Give List.
Sealed class can be inherited ?Yes/No
It is not permitted to declare modifier on the members in an interface definition?
How Interface members can be declare ?