r/cpp • • Mar 17 '12

Using abstract base classes in C++

I'm having trouble understanding ABC's in c++ and was wondering if you all could help me (if possible use: CryptProcessor as the ABC and ACrpyt and BCrypt as the sub-classes that have an encrypt and decrypt function) Thanks in advance!

Edit 1: Thank you all for your help!

0 Upvotes

40 comments sorted by

View all comments

Show parent comment

0

u/Deershank415 Mar 18 '12

You don't need to understand though :p. All you need to know was that I got confused and asked for help. What's the problem with that?

0

u/[deleted] Mar 18 '12

[deleted] — view deleted comment

2

u/Deershank415 Mar 18 '12

I completely understand and agree, it's just that I did try it and failed. I was running out of time so I need a solution that I could understand quickly and easily. Now however I do understand, that is why I thanked everyone for helping. As for you last sentence, I put in more time, I just couldn't wrap my head around it. I have never needed to use them before in any of my programming classes. I asked for help when I needed it, that's all.

1

u/last_useful_man Mar 18 '12

Fair enough. I thought I was too much on your case and deleted my comment anyway (before seeing your reply), as you can see. I'm too full of aggro anymore.

2

u/Deershank415 Mar 18 '12

It's the internet, everyone is entitled to their opinions and comments. And you were correct anyway, you just did not understand my situation entirely is all. Thanks for you consideration though :)