Welcome Guest.

1Answers

Write the running results of the following program

Asked by: Ruby 10 views IT August 4, 2022

#include

Class MyClass

{

CHAR CH;

PUBLIC:

MyClass ();

MyClass (Char Character);

Void Print ();

~ myclass ();

};

MyClass :: myclass ()

{

Cout < <"this is a constructor!" <<

ch> ch> ch> ch>

}

MyClass :: myclass (char charter)

This is a constructor! "<<

ch> ch = charActer;

}

void myclass ::)

{

COUT < <>

{

COUT < < <>>! "p> {

MyClass First, Second ('B');

***. Print ();

***. Print ();

}

1 Answers

  1. +4Votes  

    Modify the procedures (the original program has multiple faults) and the results of the operation (this is the basic operation of C ++ class)

    Robert- August 4, 2022 |