Subj : Re: struct vs class in C++ To : borland.public.cpp.borlandcpp From : "Warren Wo" Date : Sat Jun 28 2003 02:49 pm "Thomas Maeder [TeamB]" wrote in message news:m2brwjpnoc.fsf@madbox2.local... > "Warren Wo" writes: > > > What's the difference between a struct and a class in C++? > > The default access to members. In struct, members are public unless you > specify otherwise; in class, they are private by default. What then about default construct , copy-construct or assignment operator in struct? Does the compiler(borland 5.5) creat defualt assignment operator automatically when a struct is declared? For example: struct oneStruct{ int data; int* dataPtr; }; oneStruct s1,s2; pseudocode: initialize s1 s2 = s1; // does a function "operator = () " is called here? Thanks. .