简体   繁体   中英

“Virtual” is qualifier or keyword in C++?

“Virtual”是C ++中的限定符或关键字?

virtual is a keyword and a function-specifier . It's not a qualifier. C++ only talks about cv-qualifiers (ie const and volatile ); the only other uses of the word qualifier refer to scope resolution prefixes (ie global :: and ns:: and class_name:: prefixes) in qualified ids.

它既是限定符又是关键字!

'virtual' is a keyword and a qualifier. C++ is case sensitive and won't understand 'Virtual'.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM