Answer:
B. Methods and occasionally final attributes
Explanation:
In Computer programming, class members can be defined as the members of a class that typically represents or indicates the behavior and data contained in a class.
Basically, the members of a class are declared in a class, as well as all classes in its inheritance hierarchy except for destructors and constructors.
In a class, member variables are mainly known as its attributes while its member function are seldomly referred to as its methods or behaviors.
One of the main benefits and importance of using classes is that classes helps to protect and safely guard their member variables and methods by controlling access from other objects.
Therefore, the class members which should be declared as public are methods and occasionally final attributes because a public access modifier can be accessed from anywhere such as within the current or external assembly, as there are no restrictions on its access.