Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

Adobe Summit 2023 [19th to 23rd March, Las Vegas and Virtual] | Complete AEM Session & Lab list

Usage of Sling Model


Level 1

Which one of the following a better way of defining a sling model and why?


public interface MyModel {


     String getPropertyName();




public class MyModel {


     private String propertyName;


Can you tell me a defined use case for using an interface as a model when all the methods are to be overridden in all the implementation classes?

0 Replies