πŸ“’ Too many exams? Don’t know which one suits you best? Book Your Free Expert πŸ‘‰ call Now!

  • google app store apple app store
  • βœ–

      Question

      What is a "method" in the context of

      OOP?
      A A variable that stores data within an object. Correct Answer Incorrect Answer
      B A special type of class used for inheritance. Correct Answer Incorrect Answer
      C A function that belongs to a class and defines the behavior of its objects. Correct Answer Incorrect Answer
      D A keyword used to declare a new object. Correct Answer Incorrect Answer
      E A data type used for storing complex information. Correct Answer Incorrect Answer

      Solution

      A function that belongs to a class and defines the behavior of its objects.

      Practice Next
      ask-question