Object Oriented Programming Pillars
We have already discussed OOP in our first lecture of this course. Today we will talk about below 4 pillars of OOP Abstraction Encapsulation Inheritance Polymorphism Abstraction Abstraction is a concept aiming to hide relevant data about an object and expose a high-level mechanism for using it, which in turn increase efficiency and reduce complexity. For example, In Test Automation we use IWebDriver object for communication with the browser, we can open the URL and close the browser using available methods. Here we are not aware of how the communication with the browser is actually done. In Simple terms, IWebDriver object hides all the internal details and gives us methods for using it Below sample code IWebDriver driver = new ChromeDriver (); driver . Navigate() . GoToUrl( "https://www.google.com/" ); driver . Close(); Its ok, if you do not understand the code for now. We will talk about IWebdDriver i...
Comments
Post a Comment