package com.contruct; class Example{ //I did not define any constructor here public void disp() { System.out.println("disp method of Example class"); } // public static void main(String args[]){ Example obj2 = new Example(); // obj2.disp(); }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)