as the question require to declare
// Creating Class Members
public class Films {
private String itemCode;
private String title;
private String description;
private String language;
private String runningTime;
private String productionCompany;
private String status; //eg, pending, premiering, running, written-off
// No-argument Constructor: Without Parameters
public Films() {
itemCode = "ABC12345";
title = "Jack English";
description = "Jack speaking English!";
language = "English";
runningTime = "1:30";
productionCompany = "Batu Caves";
status = "Pending";
}
// With Argument Constructor: With Parameters
public Films(String itemCode, String title, String description, String language, String runningTime, String productionCompany, String status){
this.itemCode = itemCode;
this.title = title;
this.description = description;
this.language = language;
this.runningTime = runningTime;
this.productionCompany = productionCompany;
this.status = status;
}
//Copy Constructor
public Films(Films films){
itemCode = films.itemCode;
title = films.title;
description = films.description;
language = films.language;
runningTime = films.runningTime;
productionCompany = films.productionCompany;
status = films.status;
}
and then the last part require us to use method equals that return true if two objects contain the same information,
here is my problem, what should i put the conditional?
i've tried;
public boolean equals(){
if(Films == Films)
return true;
else
return false;