Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class sth
- {
- protected:
- friend void method(sth * & param){};
- };
- int main()
- {
- sth A = new sth();
- method(sth);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement