Class / Object in OOPs
I am Naimish Trivedi, I have a far experience in native and hybrid programming. I have presented the programming concept here in a simple and easy way from my experience. This will be very useful for beginner Devs and Students.
We have seen ladder of OOPs concept in previous article now in this article, we will learn about class and object in oops.
What is a class in Java
Example of a simple class in Java:
What is an object in Java
Example of creating and using objects in Java:
In this example, Person is a class that represents person. We create two person objects (object1 and object2) using the new keyword. Then, we access their fields and call their methods.
That's it for now.
Thanks,
Stay tuned for another chapter on OOPs Concept.
looking for opportunity
11 个月I learn
--
11 个月Thanks for sharing... Great explanation of the concept of class and objects in oops.
Team Leader | Sr. Android Developer | Java | Kotlin | Roku Tv developer | Amazon Fire stick
11 个月Thanks for sharing
Aspiring Java Developer | Core Java, Spring Boot, Hibernate,MySQL,JPA,
11 个月Waiting for next chapter??
Student at GTUPGSCHOOL
11 个月Thank you for Posting