public class Mobile
{
public static void main(String[] args)
{
Mobile whatsapp= new Mobile(); //object creation//new allocates memory
whatsapp.openchat(); //method calling statemnt
Mobile youtube=new Mobile();
//object creation //new allocates memory
youtube.watchvedio(); //method calling statemnt
}
public void openchat() //method signature
{
System.out.println("open chat and type hi"); //method defination//body
}
public void watchvedio() //method signature
{
System.out.println("open and watch vedio in youtube"); //method defination//body
}
}
For further actions, you may consider blocking this person and/or reporting abuse
Top comments (0)