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

3

u/growingconcern Mar 18 '12

Why do a lot of these questions on this subreddit seem like "answer my homework question for me"?

-2

u/Deershank415 Mar 18 '12

Hey a problem is a problem regardless of where it care from. It did come from my homework and I did spend way too much time searching for an answer online to no avail. I needed help in c++ so I came here :) Thanks again to all to answered!

2

u/[deleted] Mar 18 '12

A problem is a problem just like cheating is cheating.

1

u/Deershank415 Mar 18 '12

That's true, however I don't consider this cheating. If my ENTIRE homework was to do what I asked then yes. This was a small section of it. Asking for help is not cheating, at least not to me.