Click here to Skip to main content
15,902,893 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
is there a way to create something that have the use of an abstract in c ??
i have c++ code using abstract classes and i want to convert it using C and Dependency Inversion
Principle

Please help me!!!!!
Posted
Updated 23-Mar-11 0:46am
v2
Comments
Richard MacCutchan 23-Mar-11 6:41am    
C does not support classes or inheritance so it's unlikely that there is anything that would do it. However, if you explain in more detail what problem you are trying to solve someone may have a suggestion to offer.
Sergey Alexandrovich Kryukov 23-Mar-11 17:41pm    
You must have a lot of patience, Richard.
--SA
Richard MacCutchan 24-Mar-11 4:58am    
Well, it could be an interesting issue.

1 solution

C is not not capable of having classes. Period. If you want classes, you have to use C++.
 
Share this answer
 
Comments
Liakospreveza 23-Mar-11 7:57am    
i know but i have to do it in c with something that ahave the use of abstract class
Sergey Alexandrovich Kryukov 24-Mar-11 12:23pm    
You got your answer. Please understand, "I have to do" in this context is not a fair play. Tell us "I have so deliver a message faster then speed of light". Who should care about what you "have to"?
--SA
Sergey Alexandrovich Kryukov 23-Mar-11 17:40pm    
LOL. A 5.
--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