By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
429,066 Members | 1,841 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 429,066 IT Pros & Developers. It's quick & easy.

error C4430: missing type specifier - int assumed. Note: C++ does not support defaul

P: n/a
Hi, This is my first OOP in C++ and having lots of probs. Below is an abstract class for an abstract factory problem. I get the compiler error as shown in the heading.

Thanks for any tips

Expand|Select|Wrap|Line Numbers
  1. #ifndef MODEMFACTORY_H
  2. #define MODEMFACTORY_H
  3. #include <string>
  4. #include "Modem.h"
  6. class ModemFactory
  7. {
  8. public:
  9.      virtual Modem* make(const string &modem_type) = 0;
  10. };
  12. #endif
Oct 26 '10 #1
Share this Question
Share on Google+
1 Reply

Expert Mod 5K+
P: 9,197
You have a function that does not have a return type declared.

That error is not in the code you posted.

Look at the line number on the C4430, then look there in your code. That's where the compiler got in trouble. The actual error will be there or before that.
Oct 26 '10 #2

Post your reply

Sign in to post your reply or Sign up for a free account.