Created
February 4, 2026 12:42
-
-
Save trycf/7e39cf70445a5cf114cd3bbf75616ad1 to your computer and use it in GitHub Desktop.
TryCF Gist
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <cfjava handle = "instance"> | |
| public class Car{ | |
| public String model; | |
| public int year; | |
| public Car(String carModel, int carYear){ | |
| this.model = carModel; | |
| this.year = carYear; | |
| } | |
| public String getCarModel(){ | |
| return "Araba Modeli: " + model; | |
| } | |
| public int getCarYear(){ | |
| return "Araba yılı: " + year; | |
| } | |
| } | |
| </cfjava> | |
| <cfset instance.init("corolla", "2012")> | |
| <cfset carModel = instance.getCarModel()> | |
| <cfset carYear = instance.getCarYear()> | |
| <cfoutput>#carModel#</cfoutput> | |
| <cfoutput>#carYear#</cfoutput> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment