Computer Science, asked by dixitmadhu763, 9 months ago

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 shreyanshraj45
0

Answer:

it is for your teacher give me photo and information about it then I can send you

Answered by gaganadithyareddy9
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