• Post Reply Bookmark Topic Watch Topic
  • New Topic

super in constructor  RSS feed

 
kenji kunoichi
Ranch Hand
Posts: 46
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I came across this code :



here searchpage class is a subclass of Page class and it has the constructor same name as the class name. But what does it try to say in the next line super(driver)?
 
Chris Barrett
Bartender
Posts: 321
24
Eclipse IDE Firefox Browser
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Kenji,

As learning and experimenting is a far better teacher than someone just telling you the answer, what do you think it means?

Cheers!
Chris
 
Omkar Shetkar
Ranch Hand
Posts: 100
2
Eclipse IDE Java Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
May be this link is useful to understand usage of keyword super in constructor:
http://docs.oracle.com/javase/tutorial/java/IandI/super.html
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!