# Constructor driver

**URL:** <https://discuss.appium.io/t/constructor-driver/14944>\
**Category:** Support\
**Created:** [February 21, 2017, 12:25pm UTC](https://discuss.appium.io/t/constructor-driver/14944 "2017-02-21T12:25:49Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ManDD](https://discuss.appium.io/user_avatar/discuss.appium.io/mandd/32/7659_2.png) [@ManDD](https://discuss.appium.io/u/ManDD)\
**Post date:** [February 21, 2017, 12:25pm UTC](https://discuss.appium.io/t/constructor-driver/14944/1 "2017-02-21T12:25:49Z")

</div>

Hey,

I saw in example Appiumcode the following

In the BaseClass

public BasePage(WebDriver driver) {  
this.driver = driver;  
}  
and in a test class

public LoginPage(WebDriver driver) {  
super(driver);  
}  
Can someone explain in simple words what this exactly does ?

---

<div class="post-metadata">

**Author:** ![Aleksei](https://discuss.appium.io/user_avatar/discuss.appium.io/aleksei/32/6267_2.png) [@Aleksei](https://discuss.appium.io/u/Aleksei)\
**Post date:** [February 21, 2017, 1:16pm UTC](https://discuss.appium.io/t/constructor-driver/14944/2 "2017-02-21T13:16:35Z")

</div>

[http://www.seleniumeasy.com/selenium-tutorials/simple-page-object-model-framework-example](http://www.seleniumeasy.com/selenium-tutorials/simple-page-object-model-framework-example)
