Computer Science, asked by rishikasrivastava28, 4 months ago

what are benefits of classes in java​

Answers

Answered by Anonymous
0

Answer:

Classes support a powerful programming model by encapsulating related functionality into objects. The benefit of organized code is especially important for maintenance, where changes or enhancements can be limited to the objects that are affected by the change. Classes enhance code reuse.

Answered by Anonymous
1

Answer:

Classes combine data and methods. A class defines a data type.

. Advantage: Classes correspond to concepts in the problem domain. Advantage: Classes reduce complexity by increasing coherence and reducing coupling.

Similar questions