Tuesday, February 14, 2023

How to add the prefix to the ID column with auto increment ID in SQL?

Here, I am taking an example of a Product. We have different types of  products, so I want to generate a new ProductId using a prefix of value like the below:

Monday, February 13, 2023

Sunday, February 12, 2023

How do you hide base class methods?

Using the new keyword in the derived class, the base class method can be hidden or suppressed. New implementation can be added to the derived class.

Friday, February 10, 2023

How method overriding different from overloading?

Overriding different from Overloading:

If we are overriding the method, derived class method behaviour is changed from the base class. In Overloading, method with same name by different signature is used.

Thursday, February 9, 2023