Advertisement
am_dot_com

FP 2021-11-22

Nov 22nd, 2021 (edited)
704
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.45 KB | None | 0 0
  1. class Contact:
  2.     #data members / attributes / properties
  3.     def __init__(
  4.         self,
  5.         pName,
  6.         pTel,
  7.         pEmail,
  8.         pWeb
  9.     ):
  10.         self.mName = pName
  11.         self.mTel = pTel
  12.         self.mEmail = pEmail
  13.         self.mWeb = pWeb
  14.     #def __init__
  15.  
  16.     #behaviors
  17. #class
  18.  
  19. #instanciação
  20. c1 = Contact("Maria", "123", "maria@gmail.com", "no address")
  21. c2 = Contact("Art", "321", "art@gmail.com", "http://art.net")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement