what is abstraction in OOPS?

srivmanish007
srivmanish007 used Ask the Experts™
on
Exactly what is abstraction in OOPS?
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Manager / Solutions Architect
Commented:
Your question is a bit vague but abstraction on OOP languages is directly linked to the usage of interfaces.

For example:
When you create an Interface an implement it on several classes and have, for example, methods that receive the interface as an argument instead of the actual class type this is abstraction.

Another example is the Adapter Pattern. Usually also based on Interfaces, with this pattern you can create several ways of doing one end result just by expecting a base type. Take the ADO.net as a pretty good example.

Have a look at these links:
http://www.astahost.com/C-Tutorial-Lesson-5-Encapsulation-and-Abstraction-t15427.html
http://devcentral.iftech.com/articles/CSharp/intro_Csharp/default.php  (example 3)
http://en.csharp-online.net/Inheritance_and_Polymorphism%E2%80%94Abstract_Classes

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial