What is this () in Java?

The this keyword refers to the current object in a method or constructor . The most common use of the this keyword is to eliminate the confusion between class attributes and parameters with the same name (because a class attribute is shadowed by a method or constructor parameter).

Read more

Constructor Nedir Kotlin?

Kotlin ‘de bir class oluşturmak için class keyword’ünü kullanırız. Kotlin ‘de primary ve secondary olmak üzere iki tip constructor vardır. Bir class bir primary constructor ‘a ve birden fazla secondary constructor ‘a sahip olabilir. Constructor , bir nesneyi yaratmak için bize neyin gerekli olduğunu söyleyen yapılardır.

Read more