Home
About
Contact
Privacy Policy
Terms & Conditions
Courses
Join Us
Latest posts
10/recent/ticker-posts
Home-icon
Courses
Programming Lanuages
_HTML
_JavaScript
_Python
_Java
Premium Notes
Compilers
About Site
_About US
_Privacy Policy
_Cookie Policy
_Terms & Conditions
_Contact US
_Refund Policies
_Shipping Policy
_MSME Certificate
Join Us
Certificate
MSME Verified
Example of Class Methods in Python
Example of STATIC Variables in PHP
class Person: def __init__(self, name, age): self.name = name self.age = age def greet(self): print(f"Hello, my name is {self.name} and I'm {self.age} years old.") person1 = Person("Rohan", 25) person1.greet() # Output: Hello, my name is Alice and I'm 25 years old.
Click here to Copy Code
Copy Following Code and Paste it Into IDE
Also Visit
Post a Comment
0 Comments
Contact Form
Name
Email
*
Message
*
Follow us By Email
Get new post updates by email
Subscribe
Powered by
Recent Posts
3/Ethical%20Hacking/post-list
Special Topics
Artificial Intelligence
Courses
eBooks
Java
javascript
PHP
Programming Language
Python
Tricks
Search Blog
Social Plugin
FOLLOW US BY EMAIL
Get new post updates by email
Subscribe
Powered by
PYTHON Programming
3/Python/post-list
Popular Posts
Message Printing In HTML JavaScript || How to Print Message by Using JavaScript || Program to Print the Message in JavaScript
Saturday, December 17, 2022
Functions in python | python Functios | How to create an Function in Python
Wednesday, November 30, 2022
What Is Data Tampering, avoid hacking attacks
Friday, August 06, 2021
Ethical Hacking
3/Ethical%20Hacking/post-list
0 Comments
Please do not add Any Spam link in Comments !