Learn JAVA : Class and Object in JAVA [#1 Java Tutorial]

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
hello friends today we will learn about class and its object in Java let's take an example of human human class you can consider it Aven category in which you can put man woman child and similarly through class it is something which can be considered as an intangible thing fruit and under this category you can put apples banana mango and all these apples are can be placed in a category of food because they have many common properties like name of shape of color of taste of fruit let's take another example mobile phone what is mu by form a general down use for all the devices use in which we can talk or do various other job under this category you can put iPhone Sampson exit and Moto G etc in real world there are many other subjects found of similar kind which is called as a class let's first understand what is object look around you and you will find many real objects like your table or death your television or laptop your cat dog your bicycle and even your car for a moment just think about all these real world objects of you here your object shows similar characteristics what the software object shows number one is thing it number two is behavior so every object in real world like a dog has a state like name color breed a dog have main color Z please tell me the state of all and behavior is like barking and wagging tail for every real world object you can to question what possibility it can this object be in number two what possible behaviors can this object for phone software objects are conceptually cellular to real-world talking objects have a say in behavior as well an object the soul it is filled and meaningful and shows behaviors to methods and functions now I will not sister more programming terminologies here rather we will try to understand the concept move on to what is class a class is a blueprint from which individual objects are created yes it is the definition you will read everywhere let's try to understand this move so what is class then you want to create many object many car object we require some template don't you think so what is this you brilliant template look like just look at this picture what is blueprint it's a class it's a concept or it is a design or we can say it is a structure using which we can create multiple object so we call it blueprint or template here in the real word you can say that car is an object and it will have two characteristics number one is the state and number two is behavior so this state can be is size color make and model and behavior can be move accelerate turn revolt ship etc there there will be many more stated behaviors and we can describe it using variable and feels in software objects and methods and functions the behavior of particular object let's take a quick view in programming I am going to create a car car and I will create two attributes or a state of this car object size and color and set sizes set color will serve as a method or a behavior remember we can create many more behavior or methods in your class I am going to use the short example class is a keyword here using which we declare class and main method is used to create so many object using new keyword object one two and three and I am going to use the behavior and methods to set all these three methods one two and three and I will set the size and color to different values to different objects so remember we can create many objects as many object as we want using the template or blueprint let's take another example to make you better understand focus on this picture here student is a class and it serve as a blueprint or template which shows us that what our object will hold is proposed in these and roll numbers and using the set name and set roll number method we can create a many object here and creating code object number one is having the valium Nancy two is James three Goldie and four is Debbie with along with their roll number so we can create as many object as we want I hope my lessons helped you thanks for watching
Info
Channel: Pencil Idea
Views: 112,463
Rating: undefined out of 5
Keywords: object, class, tutorial, java, tutorials, class and objects in java, class and object, class and object in java with real time example, class and object in java with example, class and object in java, java tutorials, learn java, java tutorial, object oriented programming, java class, java object, free java tutorials, java for beginners, class object java, class in java, object in java, class vs object, classes and objects in java, object and class on java, class object oops
Id: yy3yLGkuXPk
Channel Id: undefined
Length: 6min 17sec (377 seconds)
Published: Sun Jul 30 2017
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.