• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 191
  • Last Modified:

class declaration

In the class declaration
"class BaseClass Newclass" where we are defining the Newclass class, what is the purpose of the BaseClass here?  Is Newclass inheriting BaseClass or what?
1 Solution
That is not valid C++.  That is a syntax error.

To declare a derived class (what you interpretted a going on) you would do

class NewClass : BaseClass

Where did you see this?

Let me know if you have any questions.
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Get expert help—faster!

Need expert help—fast? Use the Help Bell for personalized assistance getting answers to your important questions.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now