Explain extend keyword?



Explain extend keyword?..

Answer / Sarfaraj Khan

The 'extend' keyword in Scala is used to create a subclass that extends an existing class or trait. It allows the new class to inherit all the methods and properties of the parent class, and optionally override some of them.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Scala Interview Questions

What is the difference between apply and unapply methods in scala?

1 Answers  


What does s method in scala string interpolation?

1 Answers  


What do you mean by a case class in scala?

1 Answers  


What is currying in scala?

1 Answers  


What are the Popular Scala-Based Frameworks to develop RESTful Web Services or REST API?

1 Answers  


How do we make a call to a private primary constructor in scala?

1 Answers  


What does sortedset in scala collection?

1 Answers  


Is scala better than python?

1 Answers  


What are left and right in scala?

1 Answers  


What are case classes in scala?

1 Answers  


What square measure the Scala variables?

1 Answers  


What is apply method in Scala? What is unapply method in Scala? What is the difference between apply and unapply methods in Scala?

1 Answers  


Categories