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

3 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

HELP !! SHARE !! SUGGEST !!

Powered by Blogger.