Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
You can not change the implementation of a particular method on a particular interface
Maybe we're defining implementation differently? To me, implementation is what the method actually does
it is because COM doesn't specifically support some of the OO concepts (while not disallowing them either)
class Vehicle {
protected:
long m_lngColor;
public:
void Color(char* pszColor)
{
return m_lngColor;
}
virtual long NumberOfWheels()
{
return 4;
}
};
class Car : public Class Vehicle {
};
class Truck : public class Vehicle
public:
long NumberOfWheels()
{
return 8;
}
};
... and that since VB was designed to support COM, it doesn't include the OO concepts that COM ignores.
my point was that COM didn't have any sort of restriction about allowing you to compile your Car and Truck objects as COM objects that I was aware of, just because they derived from Vehicle via a non-COM-related process.
some pundits argue that black box reuse via aggregation (as supported by VB) is actually more useful than white box reuse via inheritance, since it dispenses with the fragile base class problem.