What is the purpose of including instance methods in a class?单项选择题

A

To automatically delete objects when they are no longer in use.

B

To enable objects instantiated from the class to perform specific actions or behaviors.

C

To encrypt all data stored within class instances for security.

D

To restrict the class from creating any instances.

登录即可查看完整答案

我们收录了全球超50000道真实原题与详细解析,现在登录,立即获得答案。

类似问题

更多留学生实用工具

加入我们,立即解锁 海量真题独家解析,让复习快人一步!