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”

Verified Answer
Correct Option - b

To get all Infosys Certified Scala Programmer Exam questions Join Group https://bit.ly/infy_premium_group

We're passionate about offering best placement materials and courses!! A one stop place for Placement Materials. We daily post Offcampus updates and Placement Materials.

Qtr No. 213, New Town Yehlanka Indore 454775

admin@prepflix.in