Search icon CANCEL
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Learning Force.com Application Development

You're reading from   Learning Force.com Application Development Use the Force.com platform to design and develop real-world, cutting-edge cloud applications

Arrow left icon
Product type Paperback
Published in Apr 2015
Publisher Packt
ISBN-13 9781782172796
Length 406 pages
Edition 1st Edition
Languages
Arrow right icon
Author (1):
Arrow left icon
Chamil Madusanka Chamil Madusanka
Author Profile Icon Chamil Madusanka
Chamil Madusanka
Arrow right icon
View More author details
Toc

Table of Contents (15) Chapters Close

Preface 1. Getting Started with Force.com FREE CHAPTER 2. Building the Data Model 3. Building the User Interface 4. Designing Apps for Multiple Users and Protecting Data 5. Implementing Business Processes 6. Data Management on the Force.com Platform 7. Custom Coding with Apex 8. Building Custom Pages with Visualforce 9. Analytics as a Service with the Force.com Platform 10. E-mail Services with the Force.com Platform 11. Building Public Websites with Force.com Sites 12. Deploying the Force.com Application A. Force.com Tools Index

Writing Apex code – object-oriented programming in Apex


As in most OOP languages, classes are templates through which objects are instantiated that contain attributes and methods. Class methods or attributes can be invoked by other Apex scripts within the same organization except methods that have the webservice keyword. The webservice methods are available externally to the organization. Classes are stored with the version of the API used to compile them. Classes have an isValid flag that is true if dependent metadata has not changed since compilation. Classes may contain one level of inner classes. Inner class is a way of organizing the classes (same as the package in Java).

Creating Apex code

Apex classes can be created and edited through the Setup menu of the organization and Force.com IDE and Developer Console. You can interact with Apex classes via the setup page by navigating to Setup | Develop | Apex Classes. You will see the following screenshot:

Landing page of Apex classes

You can...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime