Advertisement
NurUddinShohan

labreport

Aug 6th, 2019
129
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.34 KB | None | 0 0
  1. class corei3
  2. {
  3.     int clockspeed;
  4.     int core;
  5.     corei3(int x,int y)
  6.     {
  7.        clockspeed = x;
  8.        core = y;
  9.     }
  10. }
  11. public class Constructor {
  12.     public static void main(String[] args) {
  13.         corei3 cpu = new corei3(1000,2);
  14.         System.out.println(cpu.clockspeed);
  15.         System.out.println(cpu.core);
  16.     }
  17. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement