Advertisement
farizmpr

Untitled

Oct 12th, 2017
167
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.30 KB | None | 0 0
  1. public class Student
  2. {
  3.     // instance variables - replace the example below with your own
  4.     private String nama = "Aguel";
  5.     private double grade = 4;
  6.    
  7.     public String getName(){
  8.         return nama;
  9.     }
  10.    
  11.     public void printGrade(){
  12.         System.out.println(grade);
  13.     }
  14. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement