class AbstractClass
{
public:
void bar();
virtual void foo() = 0; //function not defined
AbstractClass();
virtual ~AbstractClass();
};
void AbstractClass::bar()
{
foo(); //calling the undefined function
}
This code will compile.
Thoughts on Computers, Programming and OO Design.
No comments:
Post a Comment