Question

What is a "method" in the context of OOP?

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

Hey! Ask a query