Advertisement
Guest User

Untitled

a guest
Feb 24th, 2018
99
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.85 KB | None | 0 0
  1. public class Konstruktory{
  2.  
  3.     private double doubleKontruktor;
  4.     private char charKontruktor;
  5.  
  6.     public Konstruktory(double doubleKontruktor){
  7.         this.doubleKontruktor = doubleKontruktor;
  8.     }
  9.  
  10.     public Konstruktory(char charKontruktor){
  11.         this.charKontruktor = charKontruktor;
  12.     }
  13.  
  14.     public Konstruktory(double doubleKontruktor, char charKontruktor){
  15.         this.doubleKontruktor = doubleKontruktor;
  16.         this.charKontruktor = charKontruktor;
  17.     }
  18.  
  19.     public Konstruktory(char charKontruktor, double doubleKontruktor){
  20.         this.charKontruktor = charKontruktor;
  21.         this.doubleKontruktor = doubleKontruktor;
  22.     }
  23.  
  24.     public static void main(String args[]){
  25.         new Konstruktory(3.2);
  26.         new Konstruktory('3');
  27.         new Konstruktory(2.1, 'a');
  28.         new Konstruktory('b', 332.2);
  29.     }
  30. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement