Find the below code
class Apartment(color:String)
{
def col()=color
def disp()=color + "House"
}
John is analyzing the above code and the following statements has been derived. Choose the statement which is not valid?
Code compiles successfully
Scala class Apartment definition is not proper
col() methods get the color
disp() method gets the color and concatenates with the string “House”
To get all Infosys Certified Scala Programmer Exam questions Join Telegram Group https://rebrand.ly/lex-telegram-236dee