Web
Opt
tools
Class Methods Configuration
Class Name
Method Type
Class Method (@classmethod)
Static Method (@staticmethod)
Instance Method
Custom Method Type
Custom Method Type
Enter custom decorator or method type (e.g., @property, @abstractmethod)
Method Name
Parameters
Enter method parameters (e.g., name, salary, cls for class methods)
Method Body
return cls(name, salary)
Enter the method implementation
Operation
Define Method
Call Method
Modify Method
Delete Method
Custom Operation
Custom Operation
Enter custom operation (e.g., validate, transform, analyze)
Operation Parameters
Additional parameters for calling the method
Call Arguments
Arguments to pass when calling the method. Strings will be automatically quoted, numbers will not. Example: "John Doe", 50000, True
Run Visualization
Console Output
>
Class Methods Visualization
Current Configuration:
Class:
Employee
Method:
create_employee
Type:
Class Method
Operation:
define
Employee
METHODS
+ __init__(name, salary)
+ get_info()
@
create_employee(name, salary)
@classmethod
@ create_employee(name, salary)
@ get_company_info()
⚡ validate_salary(salary)
⚡ calculate_bonus(salary, percentage)
Operation Status
✅ Method Definition
Defining Class Method 'create_employee' in class 'Employee'
Method Types
@classmethod
Receives class as first parameter (cls). Can access class attributes and create instances.
Method Call Examples
Current Method Call:
Employee.create_employee("John Doe", 50000)
Method Types Legend:
Instance Method
Class Method (@classmethod)
Static Method (@staticmethod)
Custom Method