Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

class python

class Employee(Object)
	def __init__(self, name, age, salary):
    	self.name = name
      	self.age = age
        self.salary = salary
        
        
  
  	def __str__(self)
    return f"Employee {name} 
hes age {age} 
and make {salary}"
Source by codefreelance.net #
 
PREVIOUS NEXT
Tagged: #class #python
ADD COMMENT
Topic
Name
2+7 =