+ 4
Sandeep hi, Your program is correct you just missed an variable name to replace C -> with H and in main function you missed to place scop braces class Program { private int L,B,H; public void setd(int a,int b,int c) { L=a; B=b; H=c; } public void showd() { System.out.println(L+"L"); System.out.println(B+"B"); System.out.println(H+"C"); } } class exp { public static void main(String[] args) { Program p=new Program(); p.setd(12,52,89); p.showd(); }} have some 🍎 🍎 🍎 🍎 🍎 🍎
29th May 2019, 12:27 PM
DishaAhuja
DishaAhuja - avatar