Samsung Electronics Interview Question

How one class can use methods from other classes?

Interview Answers

Anonymous

Sep 5, 2018

there are many ways. first make that method public. then create an instance of that class who have the method . And using that instance call the method. By inheritance .

1

Anonymous

Jul 17, 2017

Concatenation.