SHARE
TWEET

Untitled

a guest Jul 17th, 2019 53 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. public static void main(String[] args) {
  2.     Double d=new Int();
  3.  
  4.     d.test(10);
  5.  
  6.     d.add(1,2,3);        
  7. }
  8.      
  9. void test(double d) {
  10.     System.out.println("Value of D:"+ d);
  11. }
  12.  
  13.     public void add(double a, double b, double c){              
  14.         double sum = a+b+c;
  15.         System.out.println("sum Double:"+ sum);
  16.  
  17.     }
  18.      
  19. void test(int i) {
  20.     System.out.println("i:"+ i);
  21. }
  22.  
  23. public void add(int a, int b, int c){          
  24.         int sum = a+b+c;
  25.         System.out.println("sum Int:"+ sum);
  26.     }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top