I am trying to learn about how to use classes with private


I am trying to learn about how to use classes with private and public variables in c++. I've got a conversion program that I would like to use as a prop.

If I was to add a class to this program, what I think I know is...

(Just to say, this is still fresh and I don't have a full grasp of all the concepts yet)

I know that to start a class, you must first declare it like for example...

class Conversion
{
private:
int inches;
int foot;

public:
void conversion(int happen);
};

Attachment:- class example 2.zip

Solution Preview :

Prepared by a verified Expert
C/C++ Programming: I am trying to learn about how to use classes with private
Reference No:- TGS01246390

Now Priced at $20 (50% Discount)

Recommended (98%)

Rated (4.3/5)