loversxbrollins loversxbrollins
  • 19-03-2020
  • Computers and Technology
contestada

Francis has created a new program. However, Francis used some objects from another program to run methods in the current program. What is the feature of OOP called ?

Respuesta :

problemsolver2019
problemsolver2019 problemsolver2019
  • 26-03-2020

Answer:

This is inheritance. Suppose there is a python program p1.py with class Person

And we want to use the method in Person in another program p2.py

We can import that class in p2 like

from p1 import Person

And now we can create an object of class Person in p2 and use any of the methods inside the Person.

The same thing can be done in c++. java, c#, swift and various other OOPS based programming languages.

Explanation:

Please check the answer section.

Answer Link
nuke1712 nuke1712
  • 23-10-2020

Answer:

Code reuse

Explanation:

Answer Link

Otras preguntas

A consumer advocate conducted a test of a popular gasoline additive that was claimed to increase gasoline mileage in cars. For a sample of 15 cars they used the
Help Please ASAP Need help. what's -56 Divided by -72 times 83
find the area of the triangle (-2,2) ,(2,4) and (2,5)
What is homozygous dominant
What disease are nonhuman primates routinely tested for in the laboratory setting?
How did the building of the Transcontinental Railroad support Manifest Destiny? The railroad made the assimilation of the Native American tribes in Indian Terri
Express as a sum: a–5
Based on the cartoon, how did president roosevelt want to ease the great depression?
Which point does not lie on the circle centered at A(3, 1) and passing through the origin (0, 0)?.
omg this is too hard, which is this one?