Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class corei3
- {
- int clockspeed;
- int core;
- corei3(int x,int y)
- {
- clockspeed = x;
- core = y;
- }
- }
- public class Constructor {
- public static void main(String[] args) {
- corei3 cpu = new corei3(1000,2);
- System.out.println(cpu.clockspeed);
- System.out.println(cpu.core);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement