0 votes 0 votes Which of the following is not correct for virtual function in C++? Must be declared in public section of class Virtual function can be static Virtual function should be accessed using pointers Virtual function is defined in base class Unknown Category ugcnetcse-nov2017-paper2 + – Arjun asked Nov 5, 2017 edited Jul 12, 2020 by go_editor Arjun 901 views answer comment Share Follow See all 0 reply Please log in or register to add a comment.
3 votes 3 votes A virtual cant be static so option B A virtual function cannot be global or static because, by definition, a virtual function is a member function of a base class and relies on a specific object to determine which implementation of the function is called. You can declare a virtual function to be a friend of another class. akshat sharma answered Nov 9, 2017 akshat sharma comment Share Follow See all 0 reply Please log in or register to add a comment.