How to write object in Java programming or calling object in program

//define class A in program class A{ }// define another class one in the programclass One{ //call main method of program from where the execution of program begin public static void main(String args[]) { //object creation of class A A obj=new A(); }}

Post a Comment

Previous Post Next Post