Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


Explain the difference between a trait and an abstract class?



Explain the difference between a trait and an abstract class?..

Answer / Rohit Agrawal

{"Traits": ["Traits in Scala are like interfaces + multiple inheritance. They can contain methods, variables, and other traits. A class adopting a trait inherits all members of that trait."], "Abstract Classes": ["An abstract class is a partially implemented class that cannot be instantiated directly. It contains both concrete (implemented) and abstract (unimplemented) methods. Unlike interfaces, it can contain variables as well."]}

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Scala Interview Questions

What is a closure?

1 Answers  


What is string in scala?

1 Answers  


what are the features of scala?

1 Answers  


What is hashset in scala collection?

1 Answers  


What is an anonymous object in scala?

1 Answers  


What is a custom exception in scala?

1 Answers  


Why scala is faster than java?

1 Answers  


What is the difference between call-by-value and call-by-name function parameters?

1 Answers  


What is the difference between 'val' and 'lazy val' in Scala? What is Eager Evaluation? What is Lazy Evaluation?

1 Answers  


Like Hibernate for Java-based applications, What are the Popular ORM Frameworks available to use in Play/Scala based applications?

1 Answers  


How do I append data in a list?

1 Answers  


What is SBT? What is the best Build Tool to develop Play and Scala Applications?

1 Answers  


Categories