U3p7.java

class empo { public String name; public String des; public void set(String n,String d) { name=n; des=d; } } public class pro36 extends empo { public int sal; public void setd(int sall) { sal=sall; } public void show() { System.out.println(name); System.out.println(des); System.out.println(sal); } public static void main(String args[]) { pro36 obj=new pro36(); obj.set("a","b"); obj.setd(12); obj.show(); } }

Be the first to comment

You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.