Question 67

Computer Awareness Object Oriented Programming Easy

Which of the following is not a member of class?

(A) static function
(B) Friend function
(C) const function
(D) Virtual function
✓ Correct Answer: Option B Verified Solution

📘 Step-by-Step Solution & Detailed Explanation:

In object-oriented programming languages like C++, a class can have members like static functions, const functions, and virtual functions. However:\[\] 1. Static function: A static function is a member of a class that does not require an instance of the class to be accessed. \[\] 2. const function: A const function is a member function that does not alter the state of an object. It can exist within a class. \[\] 3. Virtual function: A virtual function allows polymorphism and can exist as part of a class definition. \[\] However, Friend function is not a member of the class itself. A friend function is defined outside the scope of a class, though it can access private and protected members of that class if declared as a friend.\[\] \[\] Correct Answer: (b)

Practice Similar Object Oriented Programming Questions

Reinforce your conceptual grasp with related questions from CUET-MCA 2021:

Q52 Informal high-level description of an alrogithm in English is called
Solve →
Q59 Which among the following best describes polymorphism?
Solve →
Q60 Which among the following is the language which supports classes but not...
Solve →
Q61 \( \) \( \) is a template for entities that have common behaviour
Solve →
Q78 Which of the following is a valid class declaration?
Solve →
Full-Length Test Series

Prepare for CUET-MCA Under Real Exam Conditions

Take timed full-length mock tests with authentic question distributions, negative marking (+12/-3 in Math), and instant All India Rank calculation.

Start Free Mock Test Series →