1. Using the constructor function of the class.
2. Using the member function Open () of the class.