Assignment 2
Assignment 2
interface Base
{
void read(float x);
void calculate();
void display();
}
7. WAP to find the area of a Circle using single Inheritance such that the base class method must accept the
radius from the user and the derived class method must calculate and display the area.
8. List and explain the types of inheritance in java.
9. Explain Java AWT hierarchy.
10. Write a java program to print even and odd numbers using two child threads. (multithreading)