{"comment":{"url":"https://api.github.com/repos/gabrielnicolae/C-Fundamentals/comments/10917855","html_url":"https://github.com/gabrielnicolae/C-Fundamentals/commit/b2cdb235ae6499ac05fcc92688ea6c9b23e6040d#commitcomment-10917855","id":10917855,"user":{"login":"gabrielnicolae","id":12032069,"avatar_url":"https://avatars.githubusercontent.com/u/12032069?v=3","gravatar_id":"","url":"https://api.github.com/users/gabrielnicolae","html_url":"https://github.com/gabrielnicolae","followers_url":"https://api.github.com/users/gabrielnicolae/followers","following_url":"https://api.github.com/users/gabrielnicolae/following{/other_user}","gists_url":"https://api.github.com/users/gabrielnicolae/gists{/gist_id}","starred_url":"https://api.github.com/users/gabrielnicolae/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gabrielnicolae/subscriptions","organizations_url":"https://api.github.com/users/gabrielnicolae/orgs","repos_url":"https://api.github.com/users/gabrielnicolae/repos","events_url":"https://api.github.com/users/gabrielnicolae/events{/privacy}","received_events_url":"https://api.github.com/users/gabrielnicolae/received_events","type":"User","site_admin":false},"position":9,"line":9,"path":"Syntax/MyHomework/Person.cs","commit_id":"b2cdb235ae6499ac05fcc92688ea6c9b23e6040d","created_at":"2015-04-27T14:58:27Z","updated_at":"2015-04-27T14:58:27Z","body":"Buna,\n\nAm citit toate comentariile tale, da ai dreptate mai trebuie sa mai lucrez\nputin la partea asta si nu numai. O sa incerc ca pe viitor sa fac mai bine.\n\nMultumesc pentru comentariile constructive !\n\nÎn data de 27 aprilie 2015, 10:27, anitzapredescu <notifications@github.com>\na scris:\n\n> Avand in vedere ca toate fieldurile sunt protected, ca nu ai un\n> constructor prin care sa le initializezi, daca vrei sa faci o instanta de\n> tip Persoana(clasa nu este abstracta asa ca cineva se poate gandi ca vrea\n> sa creeze un obiect persoana) ex: var pers = new Persoana(); (folosind\n> constructorul implicit) nu vei putea niciodata sa schimbi valorile\n> fieldurilor si ele ar ramane cu valorile default.\n> O rezolvare la aceasta problema este ori sa faci un constructor de genul\n> public Person(string lastName, string firstName, string dateOfBirth) si sa\n> initializezi, fie sa faci niste propietati gen public string\n> LastName{get{return lastName;} set {lastName = value;}}(eu as alege\n> constructorul pentur ca il poti folosi sa il apelezi cand faci\n> constructorul claselor care deriva din clasa Persoana. vezi comentariu de\n> la constructorul Employee)\n>\n> —\n> Reply to this email directly or view it on GitHub\n> <https://github.com/gabrielnicolae/C-Fundamentals/commit/b2cdb235ae6499ac05fcc92688ea6c9b23e6040d#commitcomment-10910241>\n> .\n>\n"}}