1.

#include <iostream>using namespace std;class course{   char name[10];  public : void LFC()  {     cout<<"Its course system";  }};class team : public course{    public: void LFC()    {       cout<<"Its team course system";    }};int main(){      team t;      t.LFC();}
7.Can main() function be made private?

A. Yes, always
B. Yes, if program doesn't contain any classes
C. No, because main function is user defined
D. No, never
Answer» E.


Discussion

No Comment Found