What will be the output of the following program?#include<iostream.h> class sun { public: void result() { cout<< class sun ; } }; class moon { public: void result() { cout<< class moon ; } }; class stars:public sun,public moon { public: void show() { cout<< class stars ; } }; void main() { stars s; s.result(); }
Reveal answer
Fill a bubble to check yourself