What Is Class In Java Programming Explain With Examples ?
Class In Java:
We can say Class is the father of object, in class we can create lots of objects.
In another way we say Collection of object is class.
Class is a collection of object.
Object is collection of Data & Action
"Data is collection of data types" & "Action is collection of what kind of action that data perform" .
For Ex: If we take Vehicals as a class.
Then Objects will be:Car, Bus, Train.
In Object Data Member will be if we take car as a object: Color, Size, Weight, Dimension.
In Object Data Function will be if we take car as a object: Motion.
Labels: JDK Installation Process, Need To Start Java Programming, Simple Java Program, What is Class In Java