[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: General programming questions list?

Drew> In C++, I have a base class and a derived class. I want to allow
Drew> operator= to be overloaded properly for my derived class such
Drew> that it can have the base class assigned to it. Do I need to
Drew> define derivedClass::operator=() to copy all the members and set
Drew> any new members to null? Can I somehow use the operator=()
Drew> function from the base class to save time (especially since the
Drew> base class isn't written by me)?

David> http://lists.linux.org.au/listinfo/linuxcprogramming/
David> http://lists.linux.org.au/listinfo/tuxcpprogramming/
David> http://www.rebel.net.au/~lloy0076/linux_c_programming/



Ian Zimmerman, Oakland, California, U.S.A. 
if (sizeof(signed) > sizeof(unsigned) + 4) { delete this; }
GPG: 433BA087  9C0F 194F 203A 63F7 B1B8  6E5A 8CA3 27DB 433B A087

Reply to: