Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Application class
- package one;
- public class Application {
- String full_name;
- int phone_number;
- public Application(String full_name) {
- this.full_name = full_name;
- }
- public void aPhone_number(int aPhone_number) {
- phone_number = aPhone_number;
- }
- public void printApplication() {
- System.out.println("ФИО: "+ full_name );
- System.out.println("Номер телефона: "+ phone_number );
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement