Answers for "what is a OOP"

9

what is a object oriented programming technique

-----What Is an Object in Programming?----
Object-oriented programming, or OOP, is an approach to problem solving 
where all computations are carried out using objects. An object is a 
component of a program that knows how to perform certain actions and how 
to interact with other elements of the program. Objects are the basic units 
of object-oriented programming. A simple example of an object would be a 
person. Logically, you would expect a person to have a name. This would be 
considered a property of the person. You could also expect a person to be able
to do something, such as walking or driving. This would be considered a method
of the person.
Posted by: Guest on August-18-2021
3

what is oop and how it works

Object Oriented programming (OOP) is a programming 
paradigm that relies on the concept of classes and 
objects. It is used to structure a software program into 
simple, reusable pieces of code blueprints (usually called 
classes), which are used to create individual instances of objects.
Posted by: Guest on April-27-2021
14

what is oop

OOP focuses on the objects that are
required to be manipulated instead of logic. 
- It makes development and maintenance easier
- It provides data hiding
- It provides ability to simulate real-world
- less memory and organized
- reusable

OOP language follow 4 principles:
1-ENCAPSULATION: We can hide direct access
to data by using private key and we can access
private data by using getter and
setter method. in my framework I have POJO
class which I use it when we need to represent
some data as Java object. So to that we need to 
create a Java class to represent it's data.
So in POJO class I use encapsulation and 
getter setter method to access them.

2-ABSTRACTION: It is a process of hiding
implementation details and showing only
functionality to the user. Abstraction lets
you focus on what the object does instead of how it does it.
In my framework I have created my
PageBase class as super
class of the all page classes. 
I have collected all common elements
and functions into PageBase class and
all other page classes extent PageBase class.
By doing so, I don't have to locate very
common WebElements and it provides
reusability in my framework.

3-INHERITANCE: It is used to define the
relationship between two classes. When a
child class acquires all properties and
behaviors of parent class known as inheritance.
Child class can reuse all the codes written
in parent class. It provides the code
reusability. in my framework I have
a TestBase class which I store 
all my reusable code and methods.
My test execution classes and 
elements classes will extend the
TestBase in order to reuse the code.

4-: POLYMORPHISM: It is an ability of object
to behave in multiple form. The most common use
of polymorphism is Java, when a parent class reference
type of variable is used to refer to a child
class object.
I use polymorphis almost everywhere
It is an ability of object to behave in multiple
form. The most common use of polymorphism is Java, when a
parent class reference type of variable
is used to refer to a child class object.
E.g.: WebDriver driver = new ChromeDriver();
JavaScriptExecuter js = (JavaScriptExecuter)Driver.getDriver;
TakeScreenshot screen = (TakeScreenshot)Driver.getDriver;
WebDriver driver = new ChromeDriver();
Posted by: Guest on February-04-2021
9

what is a object oriented programming technique

-----What Is an Object in Programming?----
Object-oriented programming, or OOP, is an approach to problem solving 
where all computations are carried out using objects. An object is a 
component of a program that knows how to perform certain actions and how 
to interact with other elements of the program. Objects are the basic units 
of object-oriented programming. A simple example of an object would be a 
person. Logically, you would expect a person to have a name. This would be 
considered a property of the person. You could also expect a person to be able
to do something, such as walking or driving. This would be considered a method
of the person.
Posted by: Guest on August-18-2021
3

what is oop and how it works

Object Oriented programming (OOP) is a programming 
paradigm that relies on the concept of classes and 
objects. It is used to structure a software program into 
simple, reusable pieces of code blueprints (usually called 
classes), which are used to create individual instances of objects.
Posted by: Guest on April-27-2021
14

what is oop

OOP focuses on the objects that are
required to be manipulated instead of logic. 
- It makes development and maintenance easier
- It provides data hiding
- It provides ability to simulate real-world
- less memory and organized
- reusable

OOP language follow 4 principles:
1-ENCAPSULATION: We can hide direct access
to data by using private key and we can access
private data by using getter and
setter method. in my framework I have POJO
class which I use it when we need to represent
some data as Java object. So to that we need to 
create a Java class to represent it's data.
So in POJO class I use encapsulation and 
getter setter method to access them.

2-ABSTRACTION: It is a process of hiding
implementation details and showing only
functionality to the user. Abstraction lets
you focus on what the object does instead of how it does it.
In my framework I have created my
PageBase class as super
class of the all page classes. 
I have collected all common elements
and functions into PageBase class and
all other page classes extent PageBase class.
By doing so, I don't have to locate very
common WebElements and it provides
reusability in my framework.

3-INHERITANCE: It is used to define the
relationship between two classes. When a
child class acquires all properties and
behaviors of parent class known as inheritance.
Child class can reuse all the codes written
in parent class. It provides the code
reusability. in my framework I have
a TestBase class which I store 
all my reusable code and methods.
My test execution classes and 
elements classes will extend the
TestBase in order to reuse the code.

4-: POLYMORPHISM: It is an ability of object
to behave in multiple form. The most common use
of polymorphism is Java, when a parent class reference
type of variable is used to refer to a child
class object.
I use polymorphis almost everywhere
It is an ability of object to behave in multiple
form. The most common use of polymorphism is Java, when a
parent class reference type of variable
is used to refer to a child class object.
E.g.: WebDriver driver = new ChromeDriver();
JavaScriptExecuter js = (JavaScriptExecuter)Driver.getDriver;
TakeScreenshot screen = (TakeScreenshot)Driver.getDriver;
WebDriver driver = new ChromeDriver();
Posted by: Guest on February-04-2021

Browse Popular Code Answers by Language