Which of the following methods have to be defined in a class to make it act like a context manager? Questions › Category: Questions › Which of the following methods have to be defined in a class to make it act like a context manager? 0 Vote Up Vote Down admin Staff asked 3 years ago Answer: __enter__, __exit__