Computer Science, asked by arshanahmedlaskar, 9 months ago

Find out the error in the below code.
Class A
{
int p;
int q;
public :
int r;
};
int main()
{
A a1;
a1.p=4;
a1.r=4;
return 0; }

Answers

Answered by alhikmat50
0

Answer:

Find out the error in the below code.

Class A

{

int p;

int q;

public :

int r;

};

int main()

{

A a1;

a1.r=4;

return 0; }

Explanation:

int p is private and can not be accessible.

Similar questions
Math, 4 months ago