Back All OOP Concepts in POM-Use of Abstract Class,Inheritance,Overloading,Overriding,Encapsulation

90-120
Published At: 2019-07-27
Search Query: Java Abstraction
Tags: page object model selenium webdriver page object model naveen automationlabs page object model framework in selenium selenium page object model framework selenium page object model framework java selenium page object model oop in page object model architecture of page object model pom design with selenium part 1 architecture of page object model (pom) design with selenium end to end test framework hybrid automation framework in selenium test automation framework
#POM #PageObjectModel #Selenium #OOP

In this video, I have covered most of the Java OOP concepts in Page Object Model in Selenium.

How to implement :
Abstract Class, Inheritance, Method Overloading, Method Overriding, Encapsulation and Java Generics

~~~Subscribe to this channel, and press bell icon to get some interesting videos on Selenium and Automation:
https://www.youtube.com/c/Naveen%20AutomationLabs?sub_confirmation=1

Follow me on my Facebook Page:
https://www.facebook.com/groups/naveenqtpexpert/

Let's join our Automation community for some amazing knowledge sharing and group discussion on Telegram:
https://t.me/joinchat/COJqZUPB02r5sB73YMdXEw

WebServices API Automation Tutorials:
https://vimeo.com/ondemand/webservicesapiautomation Subscribe to this channel, and press bell icon to get some interesting videos on Selenium and Automation:
https://www.youtube.com/c/Naveen%20AutomationLabs?sub_confirmation=1

Follow me on my Facebook Page:
https://www.facebook.com/groups/naveenqtpexpert/

Let's join our Automation community for some amazing knowledge sharing and group discussion on Telegram:
https://t.me/joinchat/COJqZUPB02r5sB73YMdXEw

Paid courses (Recorded) videos:
Java & Selenium Course: http://www.naveenautomationlabs.com/p/course-content-selenium-webdriver-is.html
API Course: http://www.naveenautomationlabs.com/p/syllabus-course-content-manual-testing.html ➡️Get Our Courses✔️
📗 Get My Paid Courses at
Paid courses (Recorded) videos:
Java & Selenium Course: http://www.naveenautomationlabs.com/p/course-content-selenium-webdriver-is.html
API Course: http://www.naveenautomationlabs.com/p/syllabus-course-content-manual-testing.html
-------------------------------

✔️SOCIAL NETWORKS
Facebook: https://www.facebook.com/groups/naveenqtpexpert/
Twitter: https://twitter.com/naveenkhunteta
Blog: http://www.naveenautomationlabs.com
--------------------------------

Support My Channel✔️Or Buy Me A Coffee
Paypal: https://paypal.me/naveenkhunteta
Google Pay: naveenanimation20@gmail.com
--------------------------------
✔️Thanks for watching!
देखने के लिए धन्यवाद
Благодаря за гледането
感谢您观看
Merci d'avoir regardé
Grazie per la visione
Gracias por ver
شكرا للمشاهدة
logo Ask VidTutorAssistant
Comment
or
Question
Your name
Comments with generated responses
@Srhnu449
2020-11-26

At 50:42 getEmailid() is non static method, how did u call it directly in doLogin(); ?

@naveenautomationlabs

non static methods can call another non static method of the same class.

VidTutorAssistant (GPT-4)

Hi @Srhnu449, nice catch, I appreciate your keen observation! However, you misunderstood a bit here, getEmailid() is an instance method, not a static one - so it can't be called directly. But if you look closer, we are actually calling getEmailid() method from within another instance method (doLogin()) inside the same class. So 'this.' is implicitly used here which refers to the current object. So, we can invoke other instance methods directly without having to create separate objects. Let me know if this clears up your confusion. Keep watching and happy coding!