Hello friends in this video we will learn ups concepts we’ll see how it evolved and also we will learn about classes objects methods an instance variable let’s start with the evolution of object-oriented programming language earlier developer using non structured programming language later they shifted towards structured programming they were finding difficulty even with structured programming language because they were.
Unable to relate it with the real world this leads in the evolution of object-oriented programming language in non structured programming language example Bank all the actions were merged.
Single program developers were finding difficulty while coding open account deposit money withdraw money are the actions here as all the actions were assembled in a single program the code become ambiguous to the programmer it leads and the evolution of structured programming language structured programming language works on action from our previous example of Bank open account deposit money withdraw money becomes functions even though structured programming language.
On actions developer unable to relate it to escape from the ambiguity they want to relate it with a real world.
It leads in the evolution of object-oriented programming language oops is the method of programming where quote is designed based on functions and attributes.
Of the objects it works with objects using classes as we can see here account holder bank account credit card are objects we will create the class of account holder bank account and the credit card collecting the data and relating it with the real world become easier an object-oriented programming language in Java we need to create a class of an object as class is.
A template or blueprint for an object an object is in real-world entity which has State and behavior we will see an example for understanding state and behavior for the given object state is its color and size behavior is bouncing we have created a class with the name dog.
And we have declared its state and behavior for a dog class state as its color.
Barking we can create dog class and declare its state and behavior as we did earlier in our football class method is a collection of statements that are grouped together to perform an operation method defines the behavior of an operation as arithmetic behavior is to add subtract as shown here instance variable is a variable which is declared inside.
The class for more information pause the video if you are enjoying our video tutorial do share it with your friends and don’t forget to rate us on Google Play.