Object Oriented Programming
The course is part of this learning path
This course covers the concept of Object-Oriented Programming in Kotlin, which is a method of designing and implementing software. It simplifies software development and maintenance by providing concepts such as object, class, inheritance, polymorphism, abstraction, and encapsulation. This course will explore those.
This course is ideal for anyone who wants to learn how to use Kotlin for developing applications on Android.
This content will take you from a beginner to a proficient user of Kotlin and so no prior experience with the programming language is required. It would, however, be beneficial to have some development experience in general.
Well, hello everyone. So, now I want to teach you a couple of things about naming convention rules in Kotlin. The Kotlin naming convention is definitely a rule to follow how to name your identifier, such as classes and variables and functions and, well, everything else. But it's not a requirement, right?
So, that means it's known as a convention because it's not a mandatory rule and it's not going to cause any errors. Now have a look at the table here. Class Name should start with uppercase letters and be a noun. For example, String, Car, System, stuff like that. Function Name should start with lowercase letters and be a verb, okay? For example, start(), stop(), actionPerformed(). A variable name should start with lowercase letters. For example, firstName, year, color, etc. So, by using standard common naming conventions, you'll make your code easier to read not only for yourself, but when you share it with other programmers.
The readability of the Kotlin programming is very important because it indicates not only that you know what you're doing, but you also understand what the code is for, what it does and what its purpose is. Out of the most important concepts of naming convention in Kotlin are case-sensitive and camel casing. So, Kotlin is a case-sensitive language. For example, Hello with the first letter uppercase, and hello with the first letter lowercase are completely different in meaning, right? Camel casing is actually a naming convention where the first letter of the second word in a compound word gets capitalized. So, you have a name that gets combined with two words, the second word will start with uppercase letters, always. So, I'll give you an example: actionPerformed, firstName, and of course you get the point. So, naming conventions in Kotlin are pretty much respected throughout the community. So, let's take a short break here and I'll see you in the next one.
Mehmet graduated from the Electrical & Electronics Engineering Department of the Turkish Military Academy in 2014 and then worked in the Turkish Armed Forces for four years. Later, he decided to become an instructor to share what he knew about programming with his students. He’s currently an Android instructor, is married, and has a daughter.