Pages

Friday, October 8, 2010

About structure in C++

One of my interview questions was if a struct can have a Constructor in c++ ?

Ans is yes. But I goofed!

The only diff is the access specifiers is public in struct .

No comments: