ប្រភេទទិន្នន័យនៅក្នុងចាវ៉ា - Data Types in Java Part 7.1 | Primitive and Non-Primitive Data Types
#រៀនសរសេរកូដជាមួយចិត្រា #javaprogramming #javabasics #codingwithchitra #sololearncoding
#datatypesinjava #primitivedatatypes #nonprimitivedatatypes
លំហាត់
Create a Java class named PersonalDetails with the following attributes:
1. studentId - an int representing the student's identification number.
2. studentName - a String representing the student's full name.
3. studentAge - a byte representing the student's age.
4. studentHeight - a double representing the student's height in meters.
5. contactNumber - a long representing the student's contact number.
6. examScore - a float representing the student's recent exam score.
7. grade - a char representing the student's letter grade.
8. isEnrolled - a boolean representing whether the student is currently enrolled.
Include an appropriate constructor, getters, setters, and a method to display the student's information. After creating the class, instantiate a PersonalDetails object and print out the student's details.
Quiz👉 https://t.me/QuizBot?start=0p5SaQue
កម្រងវីដេអូមេរៀន|Play List 👉 https://youtube.com/playlist?list=PLSJTJj3gU6qhkjSEUmgBKGJnn0ob1NZSu&si=rcvL8CwF_5EGx_2n
YouTube Channel 👉 https://www.youtube.com/@codingwithchitra
Facebook Page 👉 https://www.facebook.com/khmshared
Telegram Channel 👉 https://t.me/codingwithchitra