{"action":"opened","issue":{"url":"https://api.github.com/repos/tpe-lecture/group-22/issues/3","labels_url":"https://api.github.com/repos/tpe-lecture/group-22/issues/3/labels{/name}","comments_url":"https://api.github.com/repos/tpe-lecture/group-22/issues/3/comments","events_url":"https://api.github.com/repos/tpe-lecture/group-22/issues/3/events","html_url":"https://github.com/tpe-lecture/group-22/issues/3","id":63756513,"number":3,"title":"Anlegen von neue Vektoren über den Default-Konstruktor ","user":{"login":"RimacV","id":6330823,"avatar_url":"https://avatars.githubusercontent.com/u/6330823?v=3","gravatar_id":"","url":"https://api.github.com/users/RimacV","html_url":"https://github.com/RimacV","followers_url":"https://api.github.com/users/RimacV/followers","following_url":"https://api.github.com/users/RimacV/following{/other_user}","gists_url":"https://api.github.com/users/RimacV/gists{/gist_id}","starred_url":"https://api.github.com/users/RimacV/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RimacV/subscriptions","organizations_url":"https://api.github.com/users/RimacV/orgs","repos_url":"https://api.github.com/users/RimacV/repos","events_url":"https://api.github.com/users/RimacV/events{/privacy}","received_events_url":"https://api.github.com/users/RimacV/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-03-23T15:50:06Z","updated_at":"2015-03-23T15:50:06Z","closed_at":null,"body":"Üblicherweise legt man die neuen Vektoren nicht über einen Zugriff auf die privaten Attribute an. Obwohl syntaktisch korrekt, ist dies fehleranfällig.\r\n\r\nAnstatt:\r\n\r\n     Vector result = new Vector();\r\n\r\n     result.x = this.x + vector.x;\r\n     result.y = this.y + vector.y;\r\n     result.z = this.z + vector.z;\r\n\r\n    return result;\r\nwürde man schreiben\r\n\r\n    return new Vector(\r\n        this.x + vector.x,\r\n        this.y + vector.y,\r\n        this.z + vector.z);"}}