Argument to a class declaration is "super class" or a parent class. a class can be derived without any parent such as: class MyClass: . From a parent a class is derived as: class Myclass(parentClass). A class can be and is usually derived from default class "object".
A class in instantiated with argument only when its constructor accepts arguments.
No comments:
Post a Comment