




Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!





Code: class customer { String cust_name; int cust_no; customer(int cust_no,String cust_name ) { this.cust_no=cust_no; this.cust_name=cust_name; }
void display(){ System.out.println(cust_no+" "+cust_name); } } class membership { int mem_no; int cust_no; membership(int mem_no, int cust_no ) { this.cust_no=cust_no; this.mem_no=mem_no; } void display(){ System.out.println(mem_no+" "+cust_no); } } class cassette { int cass_no; String cass_name,language; cassette(int cass_no ,String cass_name,String language) { this.cass_no=cass_no; this.cass_name=cass_name; this.language=language; }
customer s1=new customer(1101,"Arun"); customer s2=new customer(1102,"Aarti"); customer s3=new customer(1103,"Vanshika"); customer s4=new customer(1104,"Vishal"); membership s5 =new membership(1201,1101); membership s6 =new membership(1202,1102); membership s7 =new membership(1203,1103); membership s8 =new membership(1204,1104); cassette s9 =new cassette(101,"Heat waves" ,"English"); cassette s10 =new cassette(102,"Harley in Hawaii" ,"English"); cassette s11 =new cassette(103,"Makhana" ,"Hindi"); cassette s12 =new cassette(104,"pushpa" ,"Tamil"); iss_rec s13=new iss_rec(201,"30- 01 - 2022",1201,1101); iss_rec s14=new iss_rec(202,"31- 01 - 2022",1202,1102); iss_rec s15=new iss_rec(203,"01- 02 - 2022",1203,1103); iss_rec s16=new iss_rec(204,"02- 02 - 2022",1204,1104); s1.display(); s2.display(); s3.display(); s4.display(); s5.display(); s6.display(); s7.display(); s8.display(); s9.display(); s10.display(); s11.display(); s12.display(); s13.display();
s14.display(); s15.display(); s16.display(); } }