that would work:
from ABC import ABC
class MMMM(QDialog, Ui_MMMM):
def __init__(self, iface):
...
def graph(self):
c = ABC()
x, y = c.defineABC()
otherwise, you can set x and y in ABC (by doing self.x = ...
) and then access them by c.x