Q:

What is oops and what are the different properties provided by oops?

0

What is oops and what are the different properties provided by oops?

All Answers

need an explanation for this answer? contact us directly to get an explanation for this answer

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.
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.

need an explanation for this answer? contact us directly to get an explanation for this answer

total answers (1)

Top 100 C# interview questions and answers 2022

This question belongs to these collections

Similar questions


need a help?


find thousands of online teachers now
The Differences between Abstraction and Encapsulat... >>
<< What are the similarities between a struct and a c...