DEV Community

Payilagam
Payilagam

Posted on

1

test

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
}
}
Enter fullscreen mode Exit fullscreen mode

Top comments (0)

Image of Docusign

🛠️ Bring your solution into Docusign. Reach over 1.6M customers.

Docusign is now extensible. Overcome challenges with disconnected products and inaccessible data by bringing your solutions into Docusign and publishing to 1.6M customers in the App Center.

Learn more