Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class Wektor3D{
- public int x0;
- public int y0;
- public int z0;
- public int x1;
- public int y1;
- public int z1;
- Wektor3D(){
- this.x0 = 0;
- this.y0 = 0;
- this.z0 = 0;
- this.x1 = 1;
- this.y1 = 1;
- this.z1 = 1;
- }
- public void dodaj(int x0, int y0, int z0, int x1, int y1, int z1){
- this.x0 = x0;
- this.y0 = y0;
- this.z0 = z0;
- this.x0 = x1;
- this.y0 = y1;
- this.z0 = z1;
- }
- public void dodaj(){
- this.x0 = 1;
- this.y0 = 2;
- this.z0 = 3;
- this.x0 = 4;
- this.y0 = 5;
- this.z0 = 6;
- }
- }
- class Wektor2D extends Wektor3D{
- public void dodaj(int x0, int y0, int x1, int y1){
- super.x0 = x0;
- super.y0 = y0;
- super.x0 = x1;
- super.y0 = y1;
- }
- }
- class Fasada{
- }
- public class Main {
- public static void main(String[] args) {
- Fasada fasada = new Fasada();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement