#include <stdio.h>
#include <iostream.h>

class Laptop
{
	private:
		int cpu_speed;
	public:	
		Laptop (int initial_speed = 0)
		{ cpu_speed = initial_speed; }
		
		int display ()
		{ return cpu_speed; }
		
		void setup (int new_speed)
		{ cpu_speed = new_speed; }
};

int main()
{
	Laptop Dell1;
	Laptop Dell2(2);
        cout << "hello world\n";
	printf("Dell1 has a %d GHz CPU.\n",Dell1.display()); 
        //cout << "Dell1 has a" << Dell1.display() << "\n";	
	Dell1.setup(3);
	printf("After Dell1.setup(3)\n");
	printf("Dell1 has a %d GHz CPU.\n",Dell1.display()); 
	printf("Dell2 has a %d GHz CPU.\n",Dell2.display()); 
	
	return(0);
}


