note preview

Featured Partners

1) a) class A { private float c; public void msg1(int i) { if(i<10) { B b = new B(); c = b.msg2(); if(c==i) { C c1 = new C(); c1.msg3(); } } } } b) a:A b:B c:C msg1(int i) c=msg2() c=msg3() 2) Class Notations: Class is represented by four componenets as mentioned below As mentioned in above diagram + : used for public attributes or methods - : used for private attributes or methods # : used for protected attributes or methods 3) 4) When one class extends other class then multiplicity is 1*1 not 1:* 5) a) Association:A