Oop With Java
Oop With Java
SEMESTER/SESSION 2ND
SECTION C
EXPERIMENT-1
OUTPUT
EXPERIMENT-2
(b) Write a program asking users to input character grades- A, B, C or F.
Use switch case to print:
OUTPUT
EXPERIMENT 4
a) Write a program to create a class Rectangle which has a
(
method area(). area() returns the area of the rectangle.
OUTPUT
EXPERIMENT 5
A) Create a class named Student with String variable name
and integer variable roll_no. Assign the value of roll.no as 100
and that of name as "Akshay" by creating an object of the class
Student.
OUTPUT
EXPERIMENT-5
B)
OUTPUT
EXPERIMENT-6
OUTPUT
6. Design a class hierarchy rooted in the class Student that includes two subclasses-
EXPERIMENT -7