Computer Science, asked by tinavij99, 8 months ago

what is the following statement doing also tell wat role constant"student" has..?? User obj=new user("student")​

Answers

Answered by uptobarbiesteffi
7

Answer: It's creating an object of type User and allocating memory for it.

Explanation:It's creating an object of type or class User and passing the string "student " as an argument to the constructor of the class User.

Similar questions