ប្រភេទអញ្ញាតជា Static/Class Variables inJAVA Part 6.5 | ជិកកកាយយក ត្បូងអាថ៌កំបាំងនៅក្នុង Java

Published on ● Video Link: https://www.youtube.com/watch?v=TWEGaYFtRNk



Category:
Tutorial
Duration: 37:57
146 views
12


#រៀនសរសេរកូដជាមួយចិត្រា #javaprogramming #javabasics #codingwithchitra #sololearncoding
ប្រភេទអញ្ញាតជា Static/Class Variables inJAVA - ជិកកកាយយក ត្បូងអាថ៌កំបាំងនៅក្នុង Java

JAVA ថ្នាក់ទី១ | JAVA For Beginner

លំហាត់
Exercise: Managing Students with Java Class Variables
Objective:
Practice using Java static/class variables to manage student information.
Instructions:
Student Class:
Create a Java class named Student with the following attributes:
studentId (int)
name (String)
grade (char)
Static Variables:
Add a static variable totalStudents to keep track of the total number of students.
Add a constant variable PASSING_GRADE with a value representing the passing grade (e.g., 'C').
Constructor:
Implement a parameterized constructor that initializes the instance variables.
Increment the totalStudents each time a new student is created.
Instance Method:
Implement an instance method displayStudentInfo that prints the details of a student (ID, name, grade).
Static Method:
Implement a static method displayTotalStudents that prints the total number of students.
Main Method:
In the main method, create at least four instances of the Student class with different details.
Display the details of each student using the displayStudentInfo method.
Call the displayTotalStudents method to show the total number of students.
Grade Checking:
Implement a method checkIfPass that checks if a student has passed (grade is equal to or above the passing grade).
Display a message indicating whether each student has passed or not.



កម្រងវីដេអូមេរៀន|Play List 👉 https://youtube.com/playlist?list=PLSJTJj3gU6qhkjSEUmgBKGJnn0ob1NZSu&si=rcvL8CwF_5EGx_2n
Quiz 👉 https://t.me/QuizBot?start=jz9wDgJi

YouTube Channel 👉 https://www.youtube.com/@codingwithchitra
Facebook Page 👉 https://www.facebook.com/khmshared
Telegram Channel 👉 https://t.me/codingwithchitra




Other Videos By Coding with Chitra-សរសេរកូដជាមួយចិត្រា


2024-03-09ប្រភេទទិន្នន័យជា boolean data type នៅក្នុង Primitive Data Types in Java Part 7.4
2024-03-08#youtube #shorts #javabasics #javaprogramming #codingwithchitra #coding #javatutorial #codinglife
2024-03-08កំណែលំហាត 6.4.1 - បង្កើត BankAccount class នោក្នុងមេរៀន Instance Variables
2024-03-07ប្រភេទទិន្នន័យជា លេខគត់ float and double data type នៅក្នុង Primitive Data Types in Java Part 7.3
2024-03-05ប្រភេទទិន្នន័យជា លេខគត់ byte, short, int long នៅក្នុង Primitive Data Types in Java Part 7.2
2024-03-03រៀន​ចប់​ថ្នាក់​ Java? #javabasics #javaprogramming #coding #codingwithchitra #javatutorial
2024-03-01Feedback from my free Java class. #javabasics #codinglife #javatutorial #javaforbeginner #chitra
2024-02-29ប្រភេទ​ទិន្នន័យ​នៅក្នុង​ចាវ៉ា - Data Types in Java Part 7.1 | Primitive and Non-Primitive Data Types
2024-02-28កំណែលំហាត់នៅក្នុងមេរៀនទី​ 6.3 | Part 6.3.1 | ការប្រើប្រាស់ Class Math.PI និង Math.pow()
2024-02-27កំណែលំហាត់នៅក្នុងមេរៀនទី​ 6.2 | Part 6.2.1 | កំណែលំហាត​ របៀបបង្កើត Class​ ច្រើនក្នុង File តែមួយ
2024-02-23ប្រភេទអញ្ញាតជា Static/Class Variables inJAVA Part 6.5 | ជិកកកាយយក ត្បូងអាថ៌កំបាំងនៅក្នុង Java
2024-02-21ស្ទាត់ជំនាញប្រើប្រាស់ Java System.out ក្នុងរយៈពេល៣នាទី-Mastering System.out in java-3 Minutes Guide
2024-02-21ប្រភេទអញ្ញាតជា Instance Variable - Part 6.4 | JAVA ថ្នាក់ទី១ | JAVA For Beginner
2024-02-17ប្រភេទអញ្ញាតជា Local Variables | Local Variables | Part 6.3 |JAVA ថ្នាក់ទី១ | JAVA For Beginner
2024-02-13កូដនៃក្តីស្រលាញ់ 💖💖💖 Code of Love: Valentine's Day Special Programming 💖
2024-02-13#happy valentinesday #happyvalentinesday2024 #coding #codinglife #codingtime #codingtutorial
2024-02-12ប្រភេទអញ្ញាតនៅក្នុងJava-Variables Types in Java | Part 6.2 |JAVA ថ្នាក់ទី១ | JAVA For Beginner
2024-02-12Java variables types #variables #javabasics #javaprogramming #coding #javatutorial #codinglife
2024-02-11ឈ្មោះ​អញ្ញាត​មិន​អាច​ជាន់​គ្នា​ឡើយ​ #javabasics #javaprogramming #fyp #javaforbeginner #codinglife
2024-02-11#codingwithchitra #javabasics #javaprogramming #coding #javatutorial #codinglife #javavariables
2024-02-10អញ្ញាតនៅក្នុង Java | Java- Variables Part 6.1 |JAVA ថ្នាក់ទី១ | JAVA For Beginner |



Tags:
java
javaforbeginner
coding with chitra
សរសេរកូដជាមួយចិត្រា
java for beginners
java tutorial for beginners
java programming for beginners
beginners
java training
java course
java programming
java 8 course
java tutorial
java 8 tutorial
java 8
java 8 tutorial with examples
ប្រភេទអញ្ញាតជា Static/Class Variables inJAVA
learn java
tutorial
programming
រៀនសរសេរកូដ
រៀនចាវ៉ា
core java
core java programming
codecademy
codekhmer
codecademy java
sololearn coding
static