Lab 1 – Objects and Classes: Constructors, Headers, Private Data, UML | Computer Programming II
Abd Awad
0:00 / 0:00
Lab 1 – Objects and Classes: Constructors, Headers, Private Data, UML | Computer Programming II
1 497 просмотров · 5 дней назад
Abd Awad
69 подписчиков
1 497 просмотров · 5 дней назад
الجامعة الإسلامية - غزة | برمجة حاسوب (2) عملي (Computer Programming II) | ECOM2002-6441
لاب 1: الكلاسات والأوبجكتات (Chapter 9).
في هذا الفيديو: نبني أول كلاس خطوة خطوة في Visual Studio، أشهر أخطاء الكومبايلر واللينكر،
ايش بيصير لما ينعمل object (نتتبعها بالـ debugger)، الـ initializer list والـ const members،
الـ anonymous objects، فصل الكلاس لـ .h و .cpp مع الـ inclusion guard،
البيانات الـ private مع الـ getters والـ setters، رسم الـ UML class diagram، وتاسكات لاب 1 وطريقة التسليم.
00:00 Intro: what a class is (the door)
02:52 Listing 9.1: the Circle class
04:59 Building the first class live
11:16 Circle c(); is not an object (C2228)
12:16 Two mains in one project (LNK2005)
13:57 The missing semicolon
14:59 Each object keeps its own state
16:42 What happens when an object is created (debugger)
19:47 Initializer lists and const members
25:49 Anonymous objects
30:34 Abstraction: Circle.h and Circle.cpp
37:09 What the preprocessor does with #include
39:07 The inclusion guard
42:12 #pragma once
43:17 Private data, getters and setters
52:32 UML class diagrams
56:22 A local variable hides a data field
57:47 Tasks and what to hand in