Company: Wipro_9july

Difficulty: medium

Problem Statement

You're asked by the company Happy Time Inc. to help them with the migration of the products in their system. Company's system The company has a system which consists of the following: Product : a class that represents a single product (e.g. puzzle_1 , puzzle_2 , ball_1 , ball_2 ); Category : a class that represents a product category (e.g. puzzle , balls ), providing you with the getName() -> str method; Being : an abstract class extended by Product and Category . This is where the migration will be performed; Group : a new class introduced recently to represent groups of products and categories (e.g. logic , sport ); PersistenceManager : an interface/class that represents the persistence layer of the application. By using it you can call the following methods: create_category(name: str, g: Group) -> Category : creates a new category with the given name in the given group; create_product(name: str, g: Group) -> Product : creates a new product with the given name in the given group; add

More Wipro_9july OA questionsInterview experiences