Okay but why , to what?

When developing an android app , data are retrieved and mapped to objects automatically. e.g : :Retrofit…

Let’s suppose that you have to create these objects for testing or different reasons.

public class Post { private Integer id;

private String title;

private Integer likeCount;

private Boolean isActive;

private String content;

private String description; }

There is a post object sample above and assume that you have 4 different usages for testing.

Post post1 = new Post();

Post post2 = new Post(1, "Haber 1");

Post post3 = new Post(2, "Haber 2", 28);

Post post4 = new Post(3, "Haber 3", 32, true, "Haber İçeriği", "Haber açıklaması");

You have to create 4 different constructors for Post class.