מה הסינטקס להגדיר מחלקה

Understanding C# Classes and Objects

Quiz
•
Computers
•
10th Grade
•
Easy
Limor Tal
Used 2+ times
FREE Resource
6 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
define class ClassName() { }
ClassName class { }
class ClassName { }
class: ClassName { }
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
איך יוצרים אובייקט של מחלקה
MyClass obj = MyClass();
MyClass obj;
MyClass obj = new MyClass();
new MyClass obj = new();
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
מה המטרה של הבנאי במחלקה
למחוק אובייקט לאחר שהוא נוצר
לאתחל אובייקט כאשר הוא נוצר
להגדיר את הפעולות של המחלקה
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
מה ההבדל בין מחלקה לאובייקט
מחלקה היא תבנית ליצירת אובייקטים. אובייקט הוא מופע של מחלקה.
מחלקה ואובייקט הם אותו דבר. אין הבדלים ביניהם
מחלקה היא מופע ספציפי של אובייקט. אובייקט מגדיר את המחלקה
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
מה היתרון של שימוש בפעולות קובעות ומאחזרות
הן מאפשרות גישה ישירה למשתנים
הן מספקות אבטחת מידע על ידי הגבלת גישה למשתנים
הן מקטינות את כמות הקוד הנדרש
הן מבטלות את הצורך בבנאים
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
איך ניתן להגדיר פעולה מאחזרת עבור משתנה פרטי במחלקה
public int GetVariable() { return this.variable; }
private int GetVariable() { return variable; }
public void GetVariable() { Console.WriteLine(this.variable); }
Similar Resources on Quizizz
10 questions
Computer Lab Rules

Quiz
•
5th - 11th Grade
10 questions
Variables and Data Types

Quiz
•
10th - 12th Grade
10 questions
Pemrograman Berorientasi Objek

Quiz
•
10th Grade - University
10 questions
ClassLink Password Reset Quiz

Quiz
•
7th Grade - University
10 questions
technology quizz

Quiz
•
3rd - 10th Grade
10 questions
חידון סיכום וורד

Quiz
•
KG - Professional Dev...
10 questions
מדעי המחשב יסודות ג'אווה שאלון שני

Quiz
•
10th Grade
8 questions
AP CSA Inheritance (9.5, 9.6, 9.7)

Quiz
•
10th - 12th Grade
Popular Resources on Quizizz
15 questions
Multiplication Facts

Quiz
•
4th Grade
20 questions
Math Review - Grade 6

Quiz
•
6th Grade
20 questions
math review

Quiz
•
4th Grade
5 questions
capitalization in sentences

Quiz
•
5th - 8th Grade
10 questions
Juneteenth History and Significance

Interactive video
•
5th - 8th Grade
15 questions
Adding and Subtracting Fractions

Quiz
•
5th Grade
10 questions
R2H Day One Internship Expectation Review Guidelines

Quiz
•
Professional Development
12 questions
Dividing Fractions

Quiz
•
6th Grade
Discover more resources for Computers
25 questions
Spanish preterite verbs (irregular/changed)

Quiz
•
9th - 10th Grade
10 questions
Juneteenth: History and Significance

Interactive video
•
7th - 12th Grade
8 questions
"Keeping the City of Venice Afloat" - STAAR Bootcamp, Day 1

Quiz
•
9th - 12th Grade
20 questions
Distance, Midpoint, and Slope

Quiz
•
10th Grade
20 questions
Figurative Language Review

Quiz
•
10th Grade
20 questions
Understanding Linear Equations and Slopes

Quiz
•
9th - 12th Grade