All right, let's talk about CamelCase, Pascal case and the all caps case and when to use them.
Therefore, let's just create a new class.
If we create a class, we want to call it customer service.
This is written in Pascal case.
Pascal case starts always with a capital letter.
And then for every new word inside of that phrase or name, you want to start with another capital letter.
Customer written in uppercase.
Service written in uppercase.
You want to use this one for the class for an interface, for example, but also for properties for
public properties.
So write down prop public int.
And then we could for example say customer count.
Again Pascal case.
Right.
You can see again that customer written in uppercase the C and count the C two for public properties
in addition to this we will also use Pascal case for methods.
Let's write down public string.
Get customer name right.
One more word.
Let's just do it that way.
Let's simply return an empty string here just to get rid of the error.
But the name for the method is what's important.
Again, we use Pascal case here, right?
I will remove that.
Just wanted to make it obvious.
Get customer name.
Every new word has a capital letter.
Also the first one Pascal case.
Now this is for Pascal case.
Let's take a look now at the camel case and I will remove this here.
We will use our camel case for private fields.
So for example private string last customer name for example equals to John.
You can do it that way.
This is a private field.
If you hover above it you can see it.
It's a free field and it's private.
So we want to use the camel case.
Now camel case starts with a lower case initial letter right.
Camel case lower case L.
But every new word inside of that name.
So customer or name is written with a capital letter.
Again camel case.
You want to use this for private fields but also for local variables.
So for example we can say that we have a string variable here variable inside of a method right string.
And then for example we can say name equals to John Doe.
Right.
And then we can return our name here.
Just an example.
But this is again in lower case right.
In camel case you can also call it customer name.
For example I just wanted to provide you an example.
But it's a local variable.
And therefore we again use the camel case also.
In addition to that, if we have a property inside of a method for example.
So we want to get the customer name by ID for example.
So customer ID we want to call it ID or customer ID again this is then written in camel case.
So the name of the method is Pascal case.
But the parameter here for that method is written in camel case.
Alrighty.
So Pascal case class names interfaces, public properties and methods.
Camel case for private fields, local variables and parameters.
There is one more naming convention or one more case which is for const.
So let's write down public const integer max customers equals to 100.
For example, and this is called the all caps case.
So everything is written in uppercase and every new word is indicated by an underscore.
So between every word you want to add an underscore.
But for sure not at the very beginning.
So Max underscore customers.
Great.
This is all caps.
All right.
And that's it about Pascal case camel case and the all caps case.