Question: the answer should be in Java langugae Question 6 Not yet answered Marked out of 1.00 Find the correct statement for calling the method inside
Question 6 Not yet answered Marked out of 1.00 Find the correct statement for calling the method inside the driver class or controlling class (Object Class) Class name : student (Member Method) Method name : calculate () { }; Flag question a. student() = s1 student(); calculate(); b. student s1 = new student(); s1.calculate(); c. new s1 = student(); s1.calculate(): d. student() s1 = new student, st.calculate()
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
