Python - Classes and Object Lifecycle
Which of the following is the correct way to create an object of class
Car in Python?Car in Python?new Car() is Java/C++ style, invalid in Python. Car.create() assumes a non-existent method. Car[] is invalid. Only Car() works.ClassName() to create objects [OK]15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions