Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package durgesh.assignment.data;
- public class data {
- int a;
- char ch;
- public data(int c,char d){
- a=c;
- ch=d;
- }
- public void get(){
- System.out.println(a+" "+ch);
- }
- public void wo_ini(){
- int c;// this statement will show compilation error as local uninitialised method variable do not get any value.
- int d;// this statement will show compilation error as local uninitialised method variable do not get any value.
- System.out.println(c+ " " + d);
- }
- }
Add Comment
Please, Sign In to add comment