Oops stands for object oriented programming system. It is a problem-solving technique to think real world problems in terms of objects.
Following are different properties provided by oops
Inheritance: It is a process of forming new class from the existing class. Example: A scientific calculator is an extended form of a calculator. Here, the calculator is the parent & scientific calculator is child object.
Polymorphism: The ability to use an operator or functions in different ways giving different meaning to function to the operator is called polymorphism. Example: A person is behaving like a Child, professor, student and then as a clerk. This is the power of polymorphism, a single object behaves in different forms.
Encapsulation: Encapsulate means to hide also called as data hiding. Encapsulation is used to hide the code & data in a single unit. It is a process of hiding all the internal details of an object from the outside world. Example: Capsule: Capsule which hides medicine inside it.
Abstraction: Abstraction means showing only necessary information & hiding unnecessary information from the user. Abstraction let you focus on what object does instead of how it does it. Example: Suppose you have a car, and u are riding car, now when you apply break you know that car is going to stop but you don’t know what is the process happened when you applied break. Abstraction means putting all the variables and methods in a class that is necessary.
Answer:
Oops stands for object oriented programming system. It is a problem-solving technique to think real world problems in terms of objects.
Following are different properties provided by oops
Inheritance: It is a process of forming new class from the existing class.
Example: A scientific calculator is an extended form of a calculator. Here, the calculator is the parent & scientific calculator is child object.
Polymorphism: The ability to use an operator or functions in different ways giving different meaning to function to the operator is called polymorphism.
Example: A person is behaving like a Child, professor, student and then as a clerk. This is the power of polymorphism, a single object behaves in different forms.
Encapsulation: Encapsulate means to hide also called as data hiding. Encapsulation is used to hide the code & data in a single unit. It is a process of hiding all the internal details of an object from the outside world.
Example: Capsule: Capsule which hides medicine inside it.
Abstraction: Abstraction means showing only necessary information & hiding unnecessary information from the user. Abstraction let you focus on what object does instead of how it does it.
need an explanation for this answer? contact us directly to get an explanation for this answerExample: Suppose you have a car, and u are riding car, now when you apply break you know that car is going to stop but you don’t know what is the process happened when you applied break. Abstraction means putting all the variables and methods in a class that is necessary.