Document From Anish-1
Document From Anish-1
SECTION-A
SECTION-B
1 Contd…..
SECTION-C
SECTION-D
Attempt the following Question: (1×15=15 Marks)
12. (a) What are different types of inheritance? Explain each of them. CO6 15 K5/K6
---- OR ----
(b) Create two pacakages “edu” and “com” both packages have class abc with
function sum. Sum function in class abc in package edu perform sum and
Sum function in class abc of com package perform subtraction. How you
will access method of both classes. Write the program for it.
*******
2 Contd…..