Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Transformer #11

Open
ratulMahjabin opened this issue Mar 20, 2020 · 0 comments
Open

Transformer #11

ratulMahjabin opened this issue Mar 20, 2020 · 0 comments
Labels
Fundamentals Topic - OOP Fundamentals like Polymorphism, Inheritance, Encapsulation Abstraction etc Very Easy Difficulty Level - Very Easy

Comments

@ratulMahjabin
Copy link
Contributor

ratulMahjabin commented Mar 20, 2020

Overview

Your friend Boltu is new to a software company. The company works with android applications. Your friend is assigned to make a program where the same button will perform several tasks in an application. As you are an OOP guru he came to you to help him in the problem. He promised that he will give you a treat in a famous restaurant. Can you help him?

Example

A power button can do both switch on and off operations.

Assumptions

As the application is under development, The same button may be assigned for more than two operations in the near future.

Task

Implement the code for which Boltu came to you.


Reminders

  • React to the problem if you find it interesting and helpful. This will help others to easily identify good problems to solve.
  • Feel free to comment about the problem. Is the description unclear? Do you think it is too easy or too difficult than what is mentioned? Comment about it.
  • Discussion about the solution is OK. But do not paste a solution here. Give a link to the solution instead.
  • Do you have an interesting problem? Post it.
@ratulMahjabin ratulMahjabin added Very Easy Difficulty Level - Very Easy Fundamentals Topic - OOP Fundamentals like Polymorphism, Inheritance, Encapsulation Abstraction etc labels Mar 20, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Fundamentals Topic - OOP Fundamentals like Polymorphism, Inheritance, Encapsulation Abstraction etc Very Easy Difficulty Level - Very Easy
Projects
None yet
Development

No branches or pull requests

1 participant