Question: Quickly please Write a Python program to accomplish the following tasks: A. Create a class named RamMemory that includes the following: three properties: capacity, speed

 Quickly please Write a Python program to accomplish the following tasks:

Quickly please

Write a Python program to accomplish the following tasks: A. Create a class named RamMemory that includes the following: three properties: capacity, speed and type. two methods: a) printInfo() that prints all ram's information. b) increaseCapacity () that takes one argument called cap. The method adds the value of cap to the capacity property. B. Create a class named LapTop that includes the following: three properties: a) property named brand b) property named price c) property named ram: The value of the ram should be set by default as a composition of the RamMemory class. two methods: a) printInfo(): that prints all laptop's information. b) getBrand(): that return the brand of the laptop. C. Create an object of type RamMemory with capacity=16, speed =666, and type=SRAM, and call printInfo() and increaseCapacity () methods. D. Create an object of type LapTop with capacity=16, speed =666, type=SRAM, price=1500, and brand="HP, and call printInfo() and getBrand () method

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!