Relative Content

Tag Archive for pythonclassif-statementsubclass

Why is it whenever I create a sub class I am unable to access particular functions in Pycharm?

Here I have created a Car Class. I have also created another class called Battery and then a sub class ElectricCar that takes from the Car class. I then begin to create an Instance Tesla then I connect it to the Car class, at this point everything is fine. However when I write Tesla.upgrade() for some reason Pycharm/Python does not recognise the function, does anyone know why this is I dont want to remove the subclasses.