Forum: C Apr 3rd, 2007 |
| Replies: 2 Views: 715 I have this error but cant seem to see why. This code compiled would give 1 error. Anyone please advise, thanks.
#include <string>
using namespace std;
class Beverage{
protected:
... |
Forum: C++ Apr 3rd, 2007 |
| Replies: 4 Views: 2,256 I think i got this one. I'll see if anything else coming up. |
Forum: C++ Apr 3rd, 2007 |
| Replies: 4 Views: 2,256 The reason i derive factory class from base class is because i want to call the member function of class Pizza directly.
The idea of this is simple. I have class Pizza, its derived classes such... |
Forum: C++ Apr 2nd, 2007 |
| Replies: 4 Views: 2,256 I have this class:
class Pizza{
protected:
string desc;
public:
Pizza(){
desc = "unknown pizza";
} |