Breaking News: Grepper is joining Read the official announcement!
Check it out

Scala is Object-Oriented#

Sumit Rawal answered on May 23, 2023 Popularity 5/10 Helpfulness 1/10


More Related Answers

  • scala print object type
  • how to tell what type a variable is scala
  • how to tell what type a variable is scala
  • scala operator
  • scala operator
  • scala operator
  • learn Scala
  • scala variable
  • Scala methods
  • scala vs java
  • Who's Using Scala?
  • What is scalability in a Software program?
  • check type of in scala
  • What is Scala
  • for scala example
  • So what is Scala programming language?
  • scala tutorial
  • check type of in scala
  • Scala Type Hierarchy#
  • Functions in Scala#
  • How many types of built-in operators does Scala provide?
  • Control Structures in Scala
  • Scala’s Approach#
  • Scala’s Implementation#
  • Creating a Class in Scala
  • Scala Features:-
  • Functional Programming Methods in Scala
  • Difference between object and class in Scala
  • Scala built in types

  • Scala is Object-Oriented#


    Smalltalk was released in the 1970s and was one of the first pure object-oriented programming languages. You can now find object-oriented programming everywhere. It has dominated the world of programming languages.

    The concept behind object-oriented programming is quite simple: All but the most trivial programs require some form of structure.

    The most clear-cut way of achieving this is by using the concept of storage containers. A programming language can be broadly divided into data and operations to be performed on data. What we can do is store specific data and specific operations in some type of container. Furthermore, these containers are made to be general. Hence, they not only store data and operations but they are themselves values which can be stored in other containers and passed as parameters to other operations. In object-oriented programming, these containers are known as objects.

    Alan Kay, the inventor of Smalltalk, remarked that in this way the simplest object has the same construction principle as a full computer: it combines data with operations under a formalized interface. Martin Odersky, the inventor of Scala, infers that because of Alan Kay’s remark, objects have a lot to do with language scalability: the same techniques apply to the construction of small programs as well as large programs.

    And now, even though object-oriented programming can be found in a multitude of languages, very few actually follow the principles set by Smalltalk. Scala, on the other hand, is a pure object-oriented programming language with every value being an object and every operation is a method call. So, + is not just an operator in Scala, it is a method which is a part of a much larger class of methods and data. 

    Popularity 5/10 Helpfulness 1/10 Language scala
    Source: Grepper
    Tags: scala
    Link to this answer
    Share Copy Link
    Contributed on May 23 2023
    Sumit Rawal
    0 Answers  Avg Quality 2/10


    Continue with Google

    By continuing, I agree that I have read and agree to Greppers's Terms of Service and Privacy Policy.
    Grepper Account Login Required

    Oops, You will need to install Grepper and log-in to perform this action.