Computer Science, asked by varshithreddy2847, 2 months ago

Write a java statement to create an object of class “Teacher”.​

Answers

Answered by srinivasdarling888
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 BrainlyProgrammer
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