?
=?ISO-8859-2?Q?Miros=B3aw?= Makowiecki
We has this one class:
class Socket
{
public:
Socket(Socket&);
};
and it's two class
class Bufferrivate Socket
{
public:
Buffer(Socket&soc):Socket(soc){}
Buffer(Buffer const&buf):Socket(/*i co dalej*/){};
};
We have it's code
Socket soc;
Buffer buf1(soc);
Buffer buf2=buf1;
That is a class of socket it has to be common for this objekt of variable
buff1 and buff2,that is their take up a common memory(it's property of
object of Socket).
Question:What have it got to be to a code it was a correct code of C++
language?
Thanks in advance.
Miros³aw Makowiecki
class Socket
{
public:
Socket(Socket&);
};
and it's two class
class Bufferrivate Socket
{
public:
Buffer(Socket&soc):Socket(soc){}
Buffer(Buffer const&buf):Socket(/*i co dalej*/){};
};
We have it's code
Socket soc;
Buffer buf1(soc);
Buffer buf2=buf1;
That is a class of socket it has to be common for this objekt of variable
buff1 and buff2,that is their take up a common memory(it's property of
object of Socket).
Question:What have it got to be to a code it was a correct code of C++
language?
Thanks in advance.
Miros³aw Makowiecki