Hi 👋, I am
SUBRAMANYA
< >
class Me
{
String name;
int age;
String nationality;
Me()
{
this.name="Subramanya";
this.age=22;
this.nationality="Indian";
}
void Hi ()
{
System.out.println( "Welcome to my website");
}
public static void main ( String[] args)
{
Me me= new Me ();
me.Hi();
}
}
class Me:
def __init__(self):
self.name = "Subramanya"
self.age = 22
self.nationality = "Indian"
def say_hi(self):
print( "Welcome to my website")
me = Me()
me.say_hi()
class Me
{
constructor()
{
this.name="Subramanya";
this.age=22;
this.nationality="Indian";
}
Hi()
{
console.log("Welcome to my website")
}
}
let me = newMe()
me.Hi()