82.4k views
0 votes
What is the term used to specify the collection of things you can do with objects that belong to a class?

a) private interface
b) public interface
c) private implementation
d) hidden implementation

User Lilyana
by
7.4k points

1 Answer

7 votes

Final answer:

The collection of accessible methods and properties of a class is called the public interface. It defines how objects can interact with the class externally.

Step-by-step explanation:

The term used to specify the collection of things you can do with objects that belong to a class is called the public interface. The public interface consists of all the methods and properties that are exposed to the outside for interaction with the object of a class. This is different from the private implementation, which includes the internal code that works behind the scenes and is not accessible from outside the class.

User William Oliver
by
9.0k points