Credit Card works same like Debit card.
Debit Card is attached to your saving bank account. So, whenever you make payment with Debit Card, account balance is reduced from S/B account.
Where as Credit card has a limit to spend. You can start purchasing things from Day 1 to Day 30 as per your limit. On 31st Day bill in generated which needs to be paid within 15-18 days.
So, in Credit card you get a credit of total 48 days to pay your expenses. That's it. No other difference.
Also, credit card companies provide some cash back and rewards points to lure users using credit card instead of debit card.