FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
hello-java/basic/c08_oop/Classes.java at main · mouredev/hello-java · GitHub
mouredev
/
hello-java
Public
Notifications
You must be signed in to change notification settings
Fork
413
Star
4.5k
Code
Issues
0
Pull requests
3
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
hello-java
/
basic
/
c08_oop
/
Classes.java
Copy path
More file actions
More file actions
Latest commit
History
History
History
32 lines (21 loc) · 658 Bytes
Breadcrumbs
hello-java
/
basic
/
c08_oop
/
Classes.java
Copy path
File metadata and controls
32 lines (21 loc) · 658 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
package
basic
.
c08_oop
;
/*
Clase 57 - Clases y objetos
Vídeo: https://youtu.be/JOAqpdM36wI?t=19902
*/
public
class
Classes
{
public
static
void
main
(
String
[]
args
) {
var
person
=
new
Person
(
"Brais"
, -
38
,
"123456789A"
);
// person.name = "Brais";
// person.age = 38;
person
.
sayHello
();
person
.
name
=
"Brais Moure"
;
System
.
out
.
println
(
person
.
name
);
// person.id = "123456789A";
System
.
out
.
println
(
person
.
getId
());
person
.
setAge
(
38
);
System
.
out
.
println
(
person
.
getAge
());
var
person2
=
new
Person
(
"MoureDev"
,
18
,
"123456789B"
);
person2
.
sayHello
();
}
}
Back
|
FazBrowse Home
|
New Git URL