Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class Konstruktory{
- private double doubleKontruktor;
- private char charKontruktor;
- public Konstruktory(double doubleKontruktor){
- this.doubleKontruktor = doubleKontruktor;
- }
- public Konstruktory(char charKontruktor){
- this.charKontruktor = charKontruktor;
- }
- public Konstruktory(double doubleKontruktor, char charKontruktor){
- this.doubleKontruktor = doubleKontruktor;
- this.charKontruktor = charKontruktor;
- }
- public Konstruktory(char charKontruktor, double doubleKontruktor){
- this.charKontruktor = charKontruktor;
- this.doubleKontruktor = doubleKontruktor;
- }
- public static void main(String args[]){
- new Konstruktory(3.2);
- new Konstruktory('3');
- new Konstruktory(2.1, 'a');
- new Konstruktory('b', 332.2);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement