Which constructor is being called?
Posted on 2013-06-14
Two constructors are as follows:
UsbSocket::UsbSocket(unsigned short tId)
UsbSocket::UsbSocket(unsigned short rxBuffsize, unsigned short txBuffsize, unsigned short tId)
A class is getting instantiated as follows:
_usb = new UsbSocket();
I believe above Two constructors are not getting called. Is the default constructor getting called?
We work on embedded ARM7 based target. We used Keil Tools.
If the default constructor is getting called, what does it do? Do I need to look at the compiler manual to find out what the default constructor does in my system?