xFlow Research interview question

Define a class. Difference between encapsulation/ abstraction