Answers for "private class method python"

0

private class method python

class Student:
  def __init__(self):
    pass
  
  
  # The double underscore in the front makes it private
  def __print_name(self):
    return print("private")
  
  
  # proof of use
  def print_name(self):
    return print("public")
Posted by: Guest on February-25-2021

Code answers related to "private class method python"

Python Answers by Framework

Browse Popular Code Answers by Language