Question: Consider the definition of a class called Nova, which is in the file Nova.h. #include using namespace std; class Nova { }; private: //

Consider the definition of a class called Nova, which is in the

 

Consider the definition of a class called Nova, which is in the file Nova.h. #include using namespace std; class Nova { }; private: // Private members not shown public: // Public members not shown Now consider the following program that uses the Nova class. The program compiles and runs correctly. #include using namespace std; #include "Nova.h" int main() { Nova a (3,8.1); Nova* p; Nova b(a); ++a.it; a.setAll(1,7.8); p new Nova (9, 12.7); if (ab) *p = a + b; delete p; return 0; } What members of the class Nova must exist for the above code to compile with no errors? Give variable declarations and/or method prototypes in the table below. Note that you may or may not need to fill every row in the table.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!