Computer Science, asked by rujuul2, 9 months ago

Write a class INCOME_TAX as per the following specifications. Class Variables - name, salary_amt, tax_amt Default Constructor - To initialize class variables with default values Method INPUT - To input values for name and salary_amt Method COMPUTE - To compute tax_amt @ 10% on the salary_amt exceeding Rs. 1,50,000 Method DISPLAY - To print all the details Write a main method to create an object of the above class and call all the member methods.

Answers

Answered by Anonymous
0

Answer:

A constructor is used to initialize an object when it is created. It is syntactically similar to a method. The difference is that the constructors have the same name as their class and, have no return type.

Similar questions