You are on page 1of 6

V. P.

M's Polytechnic, Thane


Department of Computer Engineering
Academic Year 2023-24
Assignment No. 3

Program: CO4I
Course : Java Programming (JPR) (22412)
Unit-III:Inhertance, Inteface and Package
Course Outcome(COa): Apply concept of inheritance for code reusability
Unit Outcomes(UO):
U3-3a: Apply the type of identified inheritance fpor the given programming problem Apply
U3-3b: Defferentiate between overloading and overriding for the given example Understand Apply
U3-3c: Develop programs using the specified interface Apply
U3-3d Create user defined package for the given problem Apply
U3-3e: Add class and interface to the given package Apply

Sr. No. Questions

1 What is single level inheritance? Explain with suitable example.

2 What is multi level inheritance? Explain with suitable example

3 What is hierarchical inheritance? Explain with suitable example

4 What are the different forms of inheritance?

5 What is constructor overloading? Explain with suitable example.

6 What is method overloading? Explain with suitable example.

7 What is method overriding? Explain with suitable example.

8 Differentiate between method overloading and method overriding.

9 What is final variable and method? How is it different from abstract method?

10 State three uses of final keyword with suitable example

11 State the use of final keyword with respect to inheritance.

12 Define interface. How is it different from a class?


What is inteface? Describe its syntax and features.

13 State the use of static keyword.

14 What is a package? How to create package? Explain with suitable example.

15 What is an interface? Describe syntax, feature and need of interface.

16 List any four built in packages from Java API along with their use.

17 How multiple inheritance is achieved in java? Explain with proper program

18 What is interface? How to add interfaces to packages?

19 What is package? State how to create and access user defined package in Java.

What is the use of super and final wrt inheritance

Write a program to create a package Math_s having two classes addition and subtraction.
20 Use suitable methods in each class to perform basic operations.

21 Define interface. How is it different from a class?

Describe access control specifiers with suitable example.

Create a class “Rectangle‟ that contains “length‟ and “width‟ as data members. From this
class drive class box which has additional data member ”depth‟. Class “Rectangle‟
22 consists of a constructor and an area ( ) function. The derived “Box‟ class have a
constructor and override function named area ( ) which returns surface area of “Box‟ and a
volume ( ) function. Write a java program calling all the member function.
23

24

Name and Sign of Subject Teacher


R/ U/ A Level Unit Outcomes
Understand,
Apply
UO-3a
Understand,
Apply
UO-3a
Understand,
Apply
UO-3a
Remember,
Understand
UO-3a
Understand,
Apply
UO -3b
Understand,
Apply
UO -3b
Understand,
Apply
UO -3b

Remember UO -3b

Remember UO -3b
Remember,
Apply
UO -3b

Remember UO -3b

Remember UO - 3c
Understand UO - 3c

Remember UO - 3c
Understand,
Apply
UO -3e

Remember UO -3d

Remember UO -3d
Understand,
Apply
UO-3a

Remember UO-3e

Remember UO-3e

Understand UO-3c

Apply UO-3e

Apply UO-3b
Remember,
Understand

Apply UO-3d
Apply UO-3d

Apply UO-3d

You might also like