Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

calculator

class calc:
  def __init__(self,num):
    self.num = num
  def __add__(self,other):
    #inner code
  def __mul__(self, other):
    #inner code
  def __sub__(self, other):
    #inner code
  def __div__(self,other):
    #inner code
  # and so on for features
  
 
PREVIOUS NEXT
Tagged: #calculator
ADD COMMENT
Topic
Name
5+3 =