{"id":28168596,"url":"https://github.com/ayvero/java_oop_person","last_synced_at":"2025-05-15T15:13:51.867Z","repository":{"id":197119847,"uuid":"680349492","full_name":"Ayvero/java_OOP_person","owner":"Ayvero","description":"Java OOP exercise to model a Person class with attributes like name, age, BMI calculation, and methods for voting, maturity, and health checks.","archived":false,"fork":false,"pushed_at":"2025-03-25T22:18:00.000Z","size":5,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-25T23:25:08.094Z","etag":null,"topics":["java","oop-principles","oops-in-java"],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Ayvero.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-08-19T01:04:44.000Z","updated_at":"2025-03-25T22:48:21.000Z","dependencies_parsed_at":"2025-03-25T23:25:14.930Z","dependency_job_id":"5821fc5c-2ed8-4469-b33c-702f2574309d","html_url":"https://github.com/Ayvero/java_OOP_person","commit_stats":null,"previous_names":["ayvero/java_practico1","ayvero/oop_java_person"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Ayvero%2Fjava_OOP_person","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Ayvero%2Fjava_OOP_person/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Ayvero%2Fjava_OOP_person/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Ayvero%2Fjava_OOP_person/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Ayvero","download_url":"https://codeload.github.com/Ayvero/java_OOP_person/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254364263,"owners_count":22058880,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["java","oop-principles","oops-in-java"],"created_at":"2025-05-15T15:13:50.729Z","updated_at":"2025-05-15T15:13:51.858Z","avatar_url":"https://github.com/Ayvero.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Ejercicio de POO - Persona\n\n## Consigna\n\nImplementar una clase llamada **Persona** con las siguientes características:\n\n### Atributos:\n- **Nombre**  \n- **Edad**  \n- **Fecha de nacimiento**  \n- **DNI**  \n- **Sexo**  \n- **Peso**  \n- **Altura**\n\n### Valores por defecto:\n- El **DNI** es un valor obligatorio, no tiene valor por defecto.\n- **Fecha de nacimiento** será el 1 de enero de 2000.\n- **Sexo** será **Femenino** por defecto.\n- El **nombre** por defecto es \"N\" y el **apellido** es \"N\".\n- El **peso** y la **altura** son 1 por defecto.\n\n### Constructores:\nSe deben crear los siguientes constructores:\n- Constructor con **DNI**.\n- Constructor con **DNI, nombre y apellido**.\n- Constructor con **DNI, nombre, apellido y fecha de nacimiento**.\n\n### Responsabilidades de la clase:\n1. **Cálculo del índice de masa corporal (IMC)**: La persona debe ser capaz de calcular su índice de masa corporal, el cual es:  \n   ```markdown\n   IMC = peso / altura^2\n------------------------------------------------------------------------------------------------------------------------------\n# OOP Exercise - Person\n\n## Problem Description\n\nImplement a class called **Person** with the following characteristics:\n\n### Attributes:\n- **Name**  \n- **Age**  \n- **Date of birth**  \n- **DNI**  \n- **Sex**  \n- **Weight**  \n- **Height**\n\n### Default Values:\n- **DNI** is a mandatory value, with no default value.\n- **Date of birth** will be set to January 1, 2000.\n- **Sex** will be **Female** by default.\n- **Name** and **Surname** will be set to \"N\" by default.\n- **Weight** and **Height** will both be set to 1 by default.\n\n### Constructors:\nThe following constructors should be created:\n- Constructor with **DNI**.\n- Constructor with **DNI, name, and surname**.\n- Constructor with **DNI, name, surname, and date of birth**.\n\n### Class Responsibilities:\n1. **Body Mass Index (BMI) Calculation**: The person should be able to calculate their body mass index, which is:  \n   ```markdown\n   BMI = weight / height^2\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fayvero%2Fjava_oop_person","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fayvero%2Fjava_oop_person","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fayvero%2Fjava_oop_person/lists"}