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

I’m taking physics and this is very confusing to me any help?
Rectangle J'K'L'M' shown on the grid is the image of rectangle JKLM after transformation. The same transformation will be applied on trapezoid STUV. Rectangle J
What advantage did the Viking longship have over earlier vessels?
3. Shanan Gibe and Associates has no preferred stock—only common equity, current liabilities, and long term debt.Based on the given data Find Shanan Gibe and As
How many times larger is 3 x 10^8 than 3 x 10^2
How can you correct any steps you missed or did incorrectly?
3x+2 = 6x-13 what is x
Select the correct description of the wording below. I play in the band and I have been to the Grand Canyon. o fragment O run-on sentence O dangling modifier O
Why did European colonists look for a new labor force?
help please A B C D