1. Glossaryفەرهەنگی زاراوەکان
Class
کلاس
Used in Kurdish course materials — not yet reviewedلە کەرەستە کوردییەکانی کۆرسدا بەکارهاتووە — هێشتا پێداچوونەوەی بۆ نەکراوە

Definitionپێناسە

A blueprint for making . It defines which properties and methods its objects have, and new creates an object from it, as in new mysqli(...).

نەخشەیەکە بۆ دروستکردنی . دیاری دەکات ئۆبجێکتەکانی چ تایبەتمەندی و میتۆدێکیان هەیە و new ئۆبجێکتێکی لێ دروست دەکات، وەک new mysqli(...).

Exampleنموونە

A tiny class with one property and one method.

کلاسێکی بچووک بە یەک تایبەتمەندی و یەک میتۆد.

class Student {
    public string $name = "";
    public function hello(): string {
        return "Hi, I am " . $this->name;
    }
}
$s = new Student();
$s->name = "Karwan";
echo $s->hello(); // Hi, I am Karwan

Other Kurdish renderings in useوەرگێڕانە کوردییەکانی تر

پۆل، کلاسەکە، کلاسەکان، کلاسێک، کلاسی، کلاسەکانی

Note on the Kurdish termتێبینی دەربارەی زاراوە کوردییەکە

پۆل (as in a school class) is sometimes used, but most Kurdish programmers say کلاس. Sozyar Osman's CS book: کلاس. Kurdish scientists' dictionary: پۆل.

Related termsزاراوە پەیوەندیدارەکان

Videosڤیدیۆکان

Python OOP Tutorial 1: Classes and InstancesCorey Schafer · Englishئینگلیزی · 5.1M viewsبینین · 128K likesلایک · Partبەشی 1:38–8:47 (ofلە 15:24)
Learn Object Oriented PHP for Beginners | With Examples to Help You Understand! | OOP PHP TutorialDani Krossing · Englishئینگلیزی · 157K viewsبینین · 3.9K likesلایک · Partبەشی 3:45–7:47 (ofلە 58:16)

Learn more inزیاتر فێربە لە