An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
C# Program
Varun Bonkinpallewar
1
Reputation point
Create a class named “Employee” with data members – employee id, name,
salary.
a. Write no-parameter constructor and one parameterized constructor.
Use “this” reference.
b. Write two public methods – Accept and Display to accept the details
of an employee and display them.
c. Create three objects of the class and display the details.
d. Display the count of objects created.
[Note: Employee id should be automatically generated. Hint: Use static
member]
Developer technologies | C#
Developer technologies | C#
Sign in to answer