Computer Science, asked by dhairyashilmore2003, 2 months ago

#include <iostream.h>
#include<conio.h>
class myclass
{
int i;
public:
void read (int j)
{
i= j;
}
int getint ()
{
return i;
}
};
void main()
{ clrscr();
myclass, *objectpointer;
objectpointer=&ob;
objectpointer->read(10);
cout<<"objectpointer->getint";
getch();
}​

Answers

Answered by hemantameher1977
1

Answer:

no no no i got the link came in this game you are

Answered by himanisharma2292004
1

Answer:

#include <iostream.h>

#include<conio.h>

class myclass

{

int i;

public:

void read (int j)

{

i= j;

}

int getint ()

{

return i;

}

};

void main()

{ clrscr();

myclass, *objectpointer;

objectpointer=&ob;

objectpointer->read(10);

cout<<"objectpointer->getint";

getch();

}

Similar questions