-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
bff5186
commit a9fc57f
Showing
4 changed files
with
41 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
class Student{ | ||
String name; | ||
String id; | ||
int age; | ||
|
||
public void printInfo(){ | ||
System.out.println(this.name); | ||
System.out.println(this.id); | ||
System.out.println(this.age); | ||
} | ||
} | ||
|
||
public class OOPs{ | ||
public static void main(String args[]){ | ||
Student s1 = new Student(); | ||
|
||
s1.name = "Yasin"; | ||
s1.id = "222-115-095"; | ||
s1.age = 20; | ||
s1.printInfo(); | ||
} | ||
} |
Binary file not shown.