Answer:
Having tested your source code, I realize that there is nothing to be added or removed from the source code you uploaded as your program works perfectly.
However, I've rearranged properly the lines of the program you uploaded.
See attachment
Explanation:
See Explanation
Answer:
for a gaming pc i recommend better graphic cards and for streaming gpu you can find some good options online not exactly sure what model.
Answer: Within other member
Explanation:
The private data member is also known as private function in the computer programming language. The private keyword is basically used to specify the access level and also provide the variable and the methods control to the programmers in the class.
In the class, the variables and the method are directly access by the other methods with the same class but not directly access by the derived class. Therefore, the private members of the class are easily access from the other member of the similar class and also from friends.
Answer:
The name of a .java file should <u>always match the name of the class inside.</u>
Explanation:
In Java programming the program written in code editor is first saved with .java extension. The name of this .java file should be same as that of the class declared inside the file.
This .java file is then compiled and converted to .class file which contains the java bytecode. This bytecode can then be executed by java virtual machine(JVM).
However it is not always necessary that name of .java files should be same as that of class inside it. The name should be same only when the class inside is declared as public.
In case it is not declared as public one can name .java file different than the actual class name.