MCQ Practice Single Best Answer Topic: Basic Concept of OOP

Q In OOP, what is a "method"?

Question ID
#20078
Subchapter
Basic Concept of OOP
Action
Choose one option below

Choose Your Answer

Click an option to check whether your answer is correct.

  • A An unrelated class
  • B A global variable
  • C A set of properties
  • D A function associated with an object
Correct Answer: D

Explanation

In OOP, a method is a function associated with an object, allowing objects to perform actions or exhibit behaviors.

Share This Question

Share this MCQ with your friends or study group.