We are committed to provide service 24 X 7

Deals, Shopping, Training, Tools

Tag: a

Learn State Design Pattern by Designing a Simple Music System

State Diagram of Music System

Many times we need to develop systems / objects that provides services to outside world. But the response of each service is not always same, it depends upon its current internal state. When its internal state changes at run-time then its behaviour changes and same services acts differently. Advertisements For example, Suppose our system is …

Learn State Design Pattern by Designing a Simple Music SystemRead More

What’s good for a fresher : Development or Testing ?

If you are going to join a Software company as a fresher, then there might a question in your mind like, What’s good for my carrier – Testing Profile or Development Profile? Advertisements [showads ad=inside_post] The Answer is “It depends on what’s your interest and what you have planned for your future” like, Frequently Asked: …

What’s good for a fresher : Development or Testing ?Read More

C++ : How to split a string using String and character as Delimiter?

In this article we will see 2 techniques to split a std::string in C++ and return the result in std::vector<std::string> i.e. Splitting a std::string using a char as delimiter. Splitting a std::string using an another std::string as delimiter. How to Split a std::string using a char as delimiter: In this we will convert the passed …

C++ : How to split a string using String and character as Delimiter?Read More

Object Oriented Approach to Display a sequence of numbers without any For-Loop or Recursion

Suppose we have to display a sequence of numbers like from 10 to 20 i.e. 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20 Advertisements without using any for-loop and recursion. Solution: Frequently Asked: Object Oriented Approach to Display a sequence of numbers without any For-Loop or Recursion We will use two concepts …

Object Oriented Approach to Display a sequence of numbers without any For-Loop or RecursionRead More

Designing Code to Convert the base of a Number to any other base in Number System

In this article we will discuss how to design a Class that represents the Number in a Number System and also provides the facility to convert the Base associated with that Number i.e. conversion from any Base to any other base like, octal to hexa or hexa to decimal etc. [showads ad=inside_post] Create a class Number that …

Designing Code to Convert the base of a Number to any other base in Number SystemRead More

Designing a Multiton: Singleton that returns 5 objects in cycle

Let’s Design a Multiton class i.e. a modified Singleton to return 5 objects in cycle. Logic to Create Multiton Advertisements Instead of keeping a static pointer as member variable keep a vector of pointers as member variable. Now also keep track of how many times getInstance() function is called. To do that use static member …

Designing a Multiton: Singleton that returns 5 objects in cycleRead More

Cart

Your Cart is Empty

Back To Shop