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

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 Wayground
10 questions
Variables and Data Types

Quiz
•
10th - 12th Grade
10 questions
IDs and Classes

Quiz
•
9th - 12th Grade
10 questions
Google Drive Knowledge Check

Quiz
•
10th - 12th Grade
10 questions
Latihan Class Library

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

Quiz
•
KG - Professional Dev...
9 questions
משחקים מרובי משתתפים

Quiz
•
KG - University
7 questions
טכנולוגיה

Quiz
•
9th - 12th Grade
10 questions
Computer Lab Rules

Quiz
•
5th - 11th Grade
Popular Resources on Wayground
25 questions
Equations of Circles

Quiz
•
10th - 11th Grade
30 questions
Week 5 Memory Builder 1 (Multiplication and Division Facts)

Quiz
•
9th Grade
33 questions
Unit 3 Summative - Summer School: Immune System

Quiz
•
10th Grade
10 questions
Writing and Identifying Ratios Practice

Quiz
•
5th - 6th Grade
36 questions
Prime and Composite Numbers

Quiz
•
5th Grade
14 questions
Exterior and Interior angles of Polygons

Quiz
•
8th Grade
37 questions
Camp Re-cap Week 1 (no regression)

Quiz
•
9th - 12th Grade
46 questions
Biology Semester 1 Review

Quiz
•
10th Grade