C++ quiz



Code
// '.h' file:
template <typename T> class X { 
 public: 
    virtual bool a() const = 0; 
    virtual void b(const T&) = 0; 
    virtual T c(); 
    virtual void d() = 0; 
    static void E(); 
    int zero_or_one() const; 
};
template <typename T> int X<T>::zero_or_one() const {return 0;} 
 
template <typename T> class Y : X<T> { 
 public: 
    bool a() const; 
    virtual void b(const T&); 
    T c(); 
    int zero_or_one() const; 
};
template <typename T> int X<T>::zero_or_one() const {return 1;}
Quiz
  1. X class is abstract?
  2. Y class is polymorphic?
  3. Y class is abstract?
  4. b function is abstract in X?
  5. b function is abstract in Y?
  6. c function is abstract in X?
  7. c function is polymorphic in Y?
  8. d function is polymorphic in X?
  9. d function is abstract in Y?
  10. E function is a class function for X?
  11. E function is a class function for Y?
  12. zero_or_one function is polymorphic in X?
  13. zero_or_one function is redefined in Y?