Kotlin: Difference between object and companion object in a class

There are two different types of object uses, expression and declaration. Object Expression An object expression can be used when a class needs slight modification, but it’s not necessary to create an entirely new subclass for it. Anonymous inner classes are a good example of this. button.setOnClickListener(object: View.OnClickListener() { override fun onClick(view: View) { // … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)