Distinguish between obj method and cls method