S
sam
Hi,
See when i reading a sourcecode of a program,
I read that the constructor is ordinary and after that the programmer
has written virtual destructor for that constructor .
Why we use the virtual destructor whats the use of it?
the code is like this:
Network(int input,int output);
Network(&Network);
virtual ~Network();
My question is why he use virtual destructor.
See when i reading a sourcecode of a program,
I read that the constructor is ordinary and after that the programmer
has written virtual destructor for that constructor .
Why we use the virtual destructor whats the use of it?
the code is like this:
Network(int input,int output);
Network(&Network);
virtual ~Network();
My question is why he use virtual destructor.