Consider the following class declarations --

class A
{
  public:
    virtual void function() = 0;
};

class B : public A
{
  private:
    void function();
}

int main()
{
  B b;
  b.function();
}

Will this code compile correctly?

--
Nilay
_______________________________________________
gem5-dev mailing list
gem5-dev@m5sim.org
http://m5sim.org/mailman/listinfo/gem5-dev

Reply via email to