0
Khoshtip Posted 11 years ago
Grammar

the "it's" reference

To what does the word "it" refer in the following sentence please?

If you have a class with a virtual function, it needs a virtual destructor.

To "a class" or to "a virtual function"?
I think, to "a class". Agree?
  

Top answer

It could be read either way. The correct interepretation depends on whether the destructor is associated with the class or with the function. As I understand it, the former makes more sense.

  • It could be read either way.
  • The correct interepretation depends on whether the destructor is associated with the class or with the function.
  • As I understand it, the former makes more sense.
Free · every Monday

Get the Weekly English Kit 📬

New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.

2 Answers
0
It could be read either way. The correct interepretation depends on whether the destructor is associated with the class or with the function. As I understand it, the former makes more sense.

Related Questions