Create a Class teacher with data members ID, Name, Address and salary and
member function to perform the following operations:
a. Accept the details of a teacher
b. Display the details of a teacher
pleaas fast answer it's arregent
Answers
Answered by
0
Answer:
it is for your teacher give me photo and information about it then I can send you
Answered by
0
Answer:
Hey! This is in python...
class teacher:
def __init__(self, name, address, sal):
name = name
add = address
sal = sal
def display(self):
print("Name = ", self.name)
print("Address = ", self.add)
print("Salary = ", self.sal)
n = input("Enter name: ")
a = input("Enter address: ")
s = float(input("Enter salary: "))
details = teacher(n, a, s)
print(details.display())
# Hope this helps!!
# Please mark as brainliest
Similar questions
Math,
4 months ago
Math,
9 months ago
Computer Science,
9 months ago
World Languages,
1 year ago
Math,
1 year ago