Click here to Skip to main content
15,884,388 members
Please Sign up or sign in to vote.
4.00/5 (1 vote)
See more:
Hi,

can anybody explain what is abstraction and i want an example as programatically(program).
i have searched i did n't find any example programatically.


Regards,
Posted
Comments
BillWoodruff 23-Sep-11 4:50am    
Are you asking about the specific use of the modifier 'abstract' in C# which can be used on classes, methods, properties, etc. ?

Abstraction is nothing but hiding the complex details. Methods for example, abstract the control flow.

Read more about abstraction here[^].
 
Share this answer
 
Comments
Sergey Alexandrovich Kryukov 23-Sep-11 2:06am    
Sorry, not quite true.
--SA
Abhinav S 23-Sep-11 6:08am    
Which part is not quite true?
 
Share this answer
 
Interesting discussion going on in here :). Beside defining abstraction using philosophical terminology, I would like to say about abstraction, it is a way to define a high level full or partial definition of a type in programming paradigm.

Now there would be an argument why don't we use inheritance then, there is good article about it in here[^]. In addition, difference between abstract and interface[^].

And finally to get a idea about how to define or use abstract concept in C# programming language please read this[^].

:)
 
Share this answer
 
v2
Everything in programming is about abstraction. Basically, this is because abstraction is a very broad epistemological concept applicable to the very roots of cognitive activity in whole humankind, as well as of some (other) higher animals.
I must admit that a big part of programmers is also capable of more or less advanced level this kind of cognitive ability. :-)

Therefore, this question is too general to be suitable for answering in a mode typical for CodeProject. Sorry, this is something where you need some more or less systematic education, not answers.

If you have more specific question, we would gladly help you.

—SA
 
Share this answer
 
v2
Comments
Mehdi Gholam 23-Sep-11 1:58am    
my 5!
Sergey Alexandrovich Kryukov 23-Sep-11 2:05am    
Oh, I just added an important phrase to it.
Thank you, Mehdi, but please see. :-)
--SA
Abhinav S 23-Sep-11 1:58am    
Correct. My 5.
Sergey Alexandrovich Kryukov 23-Sep-11 2:05am    
Oh, I just added an important phrase to it.
Thank you, Abhinav, but please see. :-)
--SA

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900