Object Oriented Programming (OOP)

Object Oriented Programming for salesforce

OOP(Object Oriented Programming) is a methodology that provides a way of modularizing a program by creating partitioned memory area for both data and methods that can be used as a template for creating copies of such modules (objects) on demand.

Unlike procedural programming, here in the OOP programming model, programs are organised around objects and data rather than action and logic.
The main OOP principle are :

1.Encapsulation
2.Inheritance
3.Polymorphism

Encapsulation: the wrapping up of data and methods together is called encapsulation. For example, if we take a class we write the variables and methods inside the class. Thus, a class is binding them together. So a class is an example of encapsulation. It is also known as Data Hiding

Inheritance: It creates new classes from existing classes so that the new classes will acquire all the features of the existing classes is called Inheritance.
A good example of Inheritance in nature is parents producing the children and children inheriting the qualities of parents.

Polymorphism: Polymorphism represents one form in multiple forms. In programming, we can use a single variable to refer to objects of different objects which means that single variable you can refer in the second object can be an extension of the first object. Thus using that variable we call the methods of different objects. A method call can perform different tasks depending on the type of the object.


These are the Oops concept you need to consider you will start learning upcoming apex episodes


WOHOOO !! YOU HAVE JUST COMPLETED APEX OOP CONCEPTS
If you like this salesforcekid learning platform please let me know in the Comment section...Also, Share with your salesforce folks wish you 
Happy learning ☁️⚡️ (Learn. Help. Share.)


<< PREVIOUS                                                     NEXT >>

Object Oriented Programming (OOP) Object Oriented Programming (OOP) Reviewed by on Rating: 5

7 comments:

  1. Suggestion: This line could be better maybe, "single variable to refer to objects of different objects"

    Am trying to learn Apex so many I will follow you website.

    Thanks

    ReplyDelete
  2. Suggestion Updated !! Thanks

    ReplyDelete
  3. A Programming Language (APL) is one of the first programming languages, which was created with the invention of the computer.teach programming for kids

    ReplyDelete
  4. Once you have a few decent sized programs under your belt, you will find that you know the language well. You will also find that it is rare, no matter how well you know a language, to be able to write a program without resorting to Google at least once just to check something.dell xps 15 for programming

    ReplyDelete
  5. Hi SFDC KID, Its very helpful and in easy way ...thank you

    ReplyDelete
  6. Customarily the principal language a programming novice learns is either Visual Basic or Python.https://hostinglelo.in/

    ReplyDelete
  7. The data recorded by the clinical supplier on the patient diagram is the premise of the protection guarantee. This implies that specialist's documentation is critical, since, in such a case that the specialist doesn't compose everything in the patient graph, then, at that point, it is thought about never to have occurred. https://sites.google.com/view/seoservicesindelhiindia

    ReplyDelete

HELP !! SHARE !! SUGGEST !!

Powered by Blogger.