xFlow Research Interview Question

Define a class. Difference between encapsulation/ abstraction