# Java 2

1. create a class called "person" with attributes "name" and "age". also create a constructor and getter method for attributes in java
    
    ![](https://cdn.hashnode.com/res/hashnode/image/upload/v1722682896141/de9e0c51-cd83-4f1b-bb74-b768f99a13df.png align="center")
    
2. ![](https://cdn.hashnode.com/res/hashnode/image/upload/v1722668737870/eeb124c0-f7c4-4397-a320-d8e700f0f3c0.png align="center")
    
    create a class circle with radius as data member. create two constructor (no argument and two arguments) and method to calculate circumstances
    
3. ![](https://cdn.hashnode.com/res/hashnode/image/upload/v1722682935567/727bfeef-2a36-4eef-a71f-cf39cfe03410.png align="center")
    
    create a class account class with all necessary parameters as data member. create two constructors (no argument, and two arguments) and methods to withdraw and deposit balance & check balance
    
4. ![](https://cdn.hashnode.com/res/hashnode/image/upload/v1722683343120/d7a6bb6a-b60b-4bf9-a912-c7285d271e5f.png align="center")
    
    ![](https://cdn.hashnode.com/res/hashnode/image/upload/v1722683356888/72429560-ddc2-479a-b7bd-f1b2a09048d1.png align="center")
    
    ![](https://cdn.hashnode.com/res/hashnode/image/upload/v1722683372451/61c9de04-4107-4dda-860c-45f31ab69a37.png align="center")
