កំណែលំហាត់ 6.5.1 -​ Managing Students ក្នុងមេរៀន ប្រភេទអញ្ញាតជា Static/Class Variables

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



Category:
Tutorial
Duration: 33:51
29 views
1


#រៀនសរសេរកូដជាមួយចិត្រា #javaprogramming #javabasics #codingwithchitra #sololearncoding
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

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-04-10The arithmetic & Assignment Operators in Java Part 9.1 - JAVA ថ្នាក់ទី១ | JAVA For Beginner
2024-04-03Part 02-ការណែនាំអំពី ភាសា Python | Introduction to Python | Coding Python from 0 to Hero
2024-04-02Type Casting in Java Part 8 - JAVA ថ្នាក់ទី១ | JAVA For Beginner
2024-04-01Part 01-ការណែនាំអំពី សរសេរកូដ Python ពីចំណុច ០ ទៅជាវិរៈបុរស | Coding Python from 0 to Hero
2024-03-30Coding Python from Zero to Hero with Chitra - coding Song
2024-03-25ដំណើរ​កម្សាន្ត​ទៅ​កាន់​កោះ​រ៉ុង​ #kohrong #relaxing #enjoylife #enjoyment #enjoytime #travelvlog
2024-03-14Tech Talk 001-How to use AI to create images
2024-03-13ប្រភេទទិន្នន័យជាតួអក្សរ char data type នៅក្នុង Primitive Data Types in Java Part 7.5
2024-03-12#javabasics #javaprogramming #codingwithchitra #coding #sololearncoding #codinglife #javatutorial
2024-03-12#javabasics #javaprogramming #codingwithchitra #codinglife #javatutorial #java #javaforbeginner
2024-03-11កំណែលំហាត់ 6.5.1 -​ Managing Students ក្នុងមេរៀន ប្រភេទអញ្ញាតជា Static/Class Variables
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 តែមួយ



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
java 12
java programming tutorial
learn to code
learn java
tutorial
programming
រៀនសរសេរកូដ
រៀនចាវ៉ា
core java
core java programming
codecademy
codekhmer
codecademy java
sololearn coding