How to Increment the value of the empid E001 for each and
every employee by using the programe?



How to Increment the value of the empid E001 for each and every employee by using the programe?..

Answer / akshay

Algorithm:
1.Take last used value into string variable.
2. Use String function to remove alphabet from value and store in temp string.
3. convert remaining part into int32.
4. increment by 1.
5. Append temp string and incremented value.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More OOPS Interview Questions

How to hide the base class functionality in Inheritance?

0 Answers   Viscus Infotech,


What is basic concept of oop?

0 Answers  


What is abstraction with example?

0 Answers  


What is encapsulation selenium?

0 Answers  


Can we define a class within the interface?

0 Answers  


How is the using() pattern useful? What is IDisposable? How does it support deterministic finalization?

1 Answers   IntraLogic,


What are virtual functions?

2 Answers  


What is the problem with multiple inheritance?

0 Answers  


can you explain how to use JavaBean in Project

3 Answers   Infosys, Satyam,


what is difference between thread and programme.

1 Answers   NCC,


write a function that takes an integer array as an input and finds the largest number in the array. You can not sort array or use any API or searching needs?

2 Answers   IBMS, Zycus Infotech,


what is a class

6 Answers  


Categories