Post not yet marked as solved
Post marked as unsolved with 3 replies, 558 views
class Employee {
func calculateSalary() {
-> how can I print name of the variable call in this function?
}
}
Example:
let johnny = Employee()
johnny.calculateSalary()
-> It will print "johnny" in function calculateSalary()