Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class Rectangle {
- double length;
- double breadth;
- }
- public class RectangleDemo {
- public static void main(String args[]) {
- Rectangle myrect1 = new Rectangle();
- System.out.println(myrect1.length);
- }
- }
- // Output - 0.0
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement