hi
what does ADT stand for?
what 2 things should an ADT description include?
what would be the specifications for a Clock ADT?
THNKS
Printable View
hi
what does ADT stand for?
what 2 things should an ADT description include?
what would be the specifications for a Clock ADT?
THNKS
Without any reference I'll say Access Developer's Toolkit which is put out by Microsoft. But from what you're asking I think I'm missing the mark.
dang
ADT
Abstract Data Type.
read a little about PURE virtual functions and you will begin to understand adt's.
Perhaps what you are looking for is an abstract data type. These are base classes with pure virtual functions, and cannot be instantiated. Instead, they are used as base classes for inheritance.
Here is an example:
Pure virtual functions (ones with '= 0' and no definition) must be overwritten in the derived classes. For example:Code:class Clock
{
public:
Clock {}
virtual void tick() = 0; // This should have no definition.
};
Now you could create an instance of the Watch class.Code:class Watch : public Clock
{
public:
Watch() {}
void tick() { /* Do something */ }
};
Abstract Data Type
Active Data Type
Access Development Toolkit
information supplied by case (see my sig)