Card 116 / 125: You are writing a class which is responsible for withdrawing and depositing into user's bank account. You marked some methods "public", which are the allowed actions the user can invoke. While marking the others along with the data members "private". You also while writing the class made sure that this class will only focus on its main purpose (bank transactions) and not to include any irrelevant methods. Which two design principles are you following?
A)
Coupling
B)
Encapsulation
C)
Cohesion
D)
Polymorphism
E)
Abstraction
F)
Inheritance
Answer:
B) Encapsulation
C) Cohesion
Previous Card | ← Previous Card Button |
Next Card | → Next Card Button |
Flip Card | Space-Bar |