Skip to content

Instantly share code, notes, and snippets.

View InacioCarvalhoOliveira's full-sized avatar
🌱
fixing knowledges

Inacio Carvalho InacioCarvalhoOliveira

🌱
fixing knowledges
View GitHub Profile
@InacioCarvalhoOliveira
InacioCarvalhoOliveira / 1.c
Last active September 20, 2021 23:43
exercises in C language_ basics
#include <stdio.h>
#include <string.h>
int main(){
int numeroInteiro = 10;
float numeroReal = 3.75;
printf("O numero Inteiro eh: %d",numeroInteiro);
printf("\nO numero Real eh: %.2f",numeroReal);
/*
Questão 5
O que faz um método construtor?
Crie uma classe Pessoa e defina
seu construtor padrão.
----------------------------------
1° CLASSE PUBLICA OBJ Pessoa;
2º ATRIBUTO CRIADO DENTRO DA CLASSE;
3° CONSTRUTOR DE CLASSE PARA O class Pessoa;
4° VALOR SETADO INCIALMENTE PARA O ATRIBUTO usrUm;