Which of the following statements is true? Select one: a. A non-private method in a superclass can be overridden b. A subclass method can be overridden by the superclass c. A private method in a superclass can be overridden d. Overriding isn’t possible in Python

Respuesta :

Answer:

The answer is A.

Explanation:

Overriding in python is possible as long as the method is not private and the same is defined both in the parent and child classes.

Overriding can not be done only if the method is private since it cannot be seen or accessed from another class.

The correct option is option A which states that a non-private method in a superclass can be overridden.

I hope this answer helps.

The statement that is true is that A non-private method in a superclass can be overridden.

Can a non private method in a superclass be overridden?

A public method seen in the base class is said to be overridden only by the same type of method in the subclass.

A private method be overridden in Python and the process of renaming the different methods and attributes that has a double underscore is known as private name mangling.

Learn more about non-private method from

https://brainly.com/question/25784459