This is a pretty straight-forwards example of thinking in object-oriented programming.
Note: This really just acts like a bunch of structs since none of the objects have any behavior. I also didn't bother with encapsulation; however, it's an integral part which I'm sure you'll learn later.
// A computer consists of a monitor, keyboard, mouse and cpu.
// Fill our computer class with information.
computer.monitor.size = 19;
computer.monitor.resWidth = 1600;
computer.monitor.resHeight = 1200;
computer.keyboard.keys = 109;
computer.mouse.buttons = 3;
computer.cpu.ghzSpeed = 3.4;