163. Abstraction

Question.7

Two developers describe their class design goals:

  • Developer A: "I hide the register pointers so nobody corrupts hardware state."
  • Developer B: "I expose only connect and send so the user does not need to understand SPI transactions."

Which describes abstraction and which describes encapsulation?

Need Help? Refer to the Quick Guide below

Select Answer