Sunday, January 31, 2016

Local variable, Global variable (Instance variables) & Class (static variables) Part 3

Hi All...!

This post going to be the last post about Local, Global & Class variables, and in this post I'm going to teach you guys what are the Class Variables (static variables). Class or static variables are the variables which we declare using static key-word. For this lesson just don't worry about what is the static key-word is, we will cover these topics in upcoming lessons.

For now just keep it in mind whenever we declare a variable using static key-word, we can access that variable just only using class name with out creating objects.

I will recap this lesson after we learn about Object Oriented Programming.

No comments:

Post a Comment