Introduction to the Apex Oriented OOPs

         Before going to do coding in apex once recall the basics of object oriented programming(OOP) language concepts.
Introduction_to_OOPs

What is OOPs:

OOP (Objecte 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 template for creating a copies of such objects(Models) on demand.
    Unlike procedural language, here in oops programming language programs are organised around objects and data rather than action and logic.
The main OOPs Principles used in apex Language are,
  • Object
  • Class
  • Inheritance 
  • Polymorphism    
  • Abstraction
  • Encapsulation

Object:  In this real word Any entity that has state and behavior is known as an object.  It can be physical and logical. 
Java_Objects

Example: Ball, Pen, Book, Clock, Apple etc.

Class: Class is a Collection of objects. It is a logical entity.

Java_Class_Example

Example: Here tub is Class and ball is Object. Tub having many no of  different color balls.

Inheritance:  When one object acquires all the properties and behaviours of parent object i.e. known as inheritance. It provides code reusability. It is used to achieve runtime polymorphism.


Example: Parents producing the children inheriting qualities of the parents.  

Polymorphism: When one task is performed by different ways simply it's  called as polymorphism. we use method overloading and method overriding to achieve polymorphism.

Java_Polymorphism

Example: with one micro oven we can make different types of cakes.

Abstraction: Hiding internal details and showing functionality is known as abstraction.we use abstract class and interface to achieve abstraction.

Java_Abstraction

Encapsulation: Binding (or wrapping) code and data together into a single unit is known as encapsulation. 

Java_Encapsulation

Example: ATM machines, we don't know the inside ATM.


COMMENTS

BLOGGER
Name

Apex Apex Default Methods Apex Methods Apex_Collections Apps Batch Apex Books CRM eBooks Data Import Wizard Data Management DataLoader Dataloader.io Difference Between Error in Salesforce FAQ's FAQ's-Apex FAQ's-Apps FAQ's-CRM FAQ's-Data loader FAQ's-SOQL & SOSL FAQ'S-Triggers FAQ's-User Profile & Security FAQ's-VF Force.com Explorer Force.com Ide Formulas & Functions Integration Interview Questions Only Latest_Updates Limits&Best Practices Online-Training Reports and Dashboards Salesforce Deployment Salesforce Realtime Examples On Development Salesforce Realtime Task On Admin Salesforce Realtime Tasks Salesforce Realtime Tasks- Apex Salesforce Training Salesforce1 Mobile Sites SOQL Spring'14 Release Triggers User Profile & Security VF Tags VisualForce Winter'14 Release Wizard for Accounts/Contacts Workbench Workflows and Approvals
false
ltr
item
Sfdc Gurukul- All in one place for salesforce and force.com step by step tutorial for beginners: Introduction to the Apex Oriented OOPs
Introduction to the Apex Oriented OOPs
Introduction to the Apex Oriented OOPs,Object oriented programming language,oops basics,what is encapsulation,what is polymorphism,what is inheritance in java,what is method
https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj3ls-xenkhFWcAu5cHBqbDS8RB5tKTUGVDgaTp2D1R1EXWsi8g1CmOh8nFb4g6qLaFqNwqaq6IqlpmMLXnVNtVhl86prWJ3JODPArnxnkxVoN14-VUDm7HaoFv0hR7D5FUcBJerAVisN5t/s1600/Introduction_to_OOPs.jpg
https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj3ls-xenkhFWcAu5cHBqbDS8RB5tKTUGVDgaTp2D1R1EXWsi8g1CmOh8nFb4g6qLaFqNwqaq6IqlpmMLXnVNtVhl86prWJ3JODPArnxnkxVoN14-VUDm7HaoFv0hR7D5FUcBJerAVisN5t/s72-c/Introduction_to_OOPs.jpg
Sfdc Gurukul- All in one place for salesforce and force.com step by step tutorial for beginners
https://sfdcgurukul.blogspot.com/2015/04/introduction-to-apex-oriented-oops.html
https://sfdcgurukul.blogspot.com/
http://sfdcgurukul.blogspot.com/
http://sfdcgurukul.blogspot.com/2015/04/introduction-to-apex-oriented-oops.html
true
4199533888133360731
UTF-8
Not found any posts VIEW ALL Readmore Reply Cancel reply Delete By Home PAGES POSTS View All RECOMMENDED FOR YOU LABEL ARCHIVE SEARCH ALL POSTS Not found any post match with your request Back Home Sunday Monday Tuesday Wednesday Thursday Friday Saturday Sun Mon Tue Wed Thu Fri Sat January February March April May June July August September October November December Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec just now 1 minute ago $$1$$ minutes ago 1 hour ago $$1$$ hours ago Yesterday $$1$$ days ago $$1$$ weeks ago more than 5 weeks ago Followers Follow THIS CONTENT IS PREMIUM Please share to unlock Copy All Code Select All Code All codes were copied to your clipboard Can not copy the codes / texts, please press [CTRL]+[C] (or CMD+C with Mac) to copy