Write a java statement to create an object of class “Teacher”.
Answers
Answered by
2
Answer:
can I create in python
Explanation:
class Teacher:
def student(self):
S1=Teacher()
S1.Teacher()
S1 is an object of teacher
Answered by
4
Answer:
//Java program to create an object of class Teacher
import java.util.*;
public class Teacher {
public static void main (String ar[]){
Scanner ob=new Scanner (System.in);
Teacher ob= new Teacher();
//Creating an object
}
}
Similar questions