Advanced-Cpp/C2/Classes-And-Objects/Khasi

From Script | Spoken-Tutorial
Revision as of 11:28, 1 September 2017 by Thaw (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
Time Narration
00:01 Pdiang sngewbha ia phi sha ka spoken tutorial halor ka Classes and Objects ha ka C++.


00:07 Ha kane ka jinghikai, ngin sa pule ia ki:
00:09 * Classes
00:11 * Objects
00:12 * Encapsulation bad
00:14 * Data abstraction.
00:16 Ngin sa leh ia kane da ka jingiarap jong ka nuksa.
00:20 Ban record ia kane ka jinghikai, Nga pyndonkam
00:23 *Ubuntu OS version 11.10
00:28 *g++ compiler version 4.6.1
00:32 To ngin sdang da ka jingpynithuh ia ki classes
00:36 Ia ka Class la thaw da ka ba pyndonkam ia ka keyword class.
00:39 Ka bat ia ki data bad functions.
00:42 Class ka linkia ka code bad data.
00:45 Kidata bad ki functions jong ka class la khot kum ki dkhot jong ka class
00:51 To ngin iaid shakhmat sha ki objects.
00:53 Objects ki dei ki variable.
00:55 Ki dei ki copy jong ka class.
00:58 Kawei pa kawei na kine ki don ia ka properties bad behavior.
01:01 Ia kiProperties la batai lyngbaka data elements bad
01:06 Ia ka behavior la batai lyngba ki dkhot jong ki functions ba khot methods.
01:10 Mynta to ngin ia peit ia ka syntax Na ka bynta ka class.
01:14 Hangne, class Ka dei kakyntienba pyndonkam ban batai ia ka class.
01:18 Class-name ka dei ka kyrteng jong ka class.
01:21 public, private bad protected Ki dei ki access specifier.
01:26 Bad hangne ngi la dep batai ia ki dkhot ki data bad ki functionjong ki dkhot kum public, private bad protected.
01:34 Dei kumne ba ngi khang ia ka “’class”’
01:37 Mynta to ngin peit ia ka nuksa.
01:39 Nga la dep type lypa ia ka code ha ka editor.
01:42 Ngan sa plie ia ka.
01:44 Kynmaw ba ka filename jong ngi ka dei class hyphen obj dot cpp
01:50 Ha kane ka nuksa, ngin wad ia ka area ne jingheh jong ka square da ka ba pyndonkam ia ka class.
01:56 Ngan batai ia ka code mynta.
01:58 Kane ka dei ka header file jong ngi kum iostream.
02:02 Hangne ngi pyndonkam ia ka std namespace.
02:06 Kane ka dei ka jingpynithuh na ka bynta ka class ba kyrteng square.
02:10 Hangne, ngam pat ai access specifier eiei.
02:14 Te, dalade hi ka la long private.
02:17 Namarkata, u variable x u dei u private u dkhot jong ka class square.
02:22 kane ka dei ka public specifier.
02:25 Function area ka dei ka public function.
02:28 Bad da kumne ngi khang ia ka class.
02:31 Mynta to ngin iaid biang sha ki slides jong ngi ban tip khambun shaphang ki access specifiers.
02:36 Public specifier-
02:39 : ka public specifier ka ailad ia ka data ban pyndonkam na shabar ka class.
02:44 Ia ka Dkhot jong ka public lah ban pyndonkam hangno hangno ha ka program.
02:49 Private specifier-
02:51 : Ym lah ban pyndonkam ia ki dkhot jong ka “ private” na shabar ka 'class' .
02:57 : Ia ki dkhot jong ka private' lah ban pyndonkam tang ia kiba long dkhot jong ka class.
03:03 Protected specifier-
03:05 Ymlah ban pyndonkam ia ki dkhot balong * protected na shabar ka class.
03:10 * Ia ki, lah ban pyndonkam da ka derived class.
03:13 To ngin phai biang sha ka program jong ngi.
03:16 Hangne, ha kane ka jingthoh ngi don ia ka kyrteng ka class,
03:21 ka scope resolution operator bad ka kyrteng jong ka function.
03:25 Ngi hap ban pyndonkam ia kane ka operator
03:27 Ka iathuh ba ka function area kam dei ka global function.
03:33 Ka dei ka function dkhot jong ka class square.
03:36 Hangne, ngi la ai ia ka argument kum int a.
03:40 Mynta ia ngin phai biang sha ki slides jong ngi ban tip khambun shaphang ka scope resolution operator.
03:46 Ia kane la pyndonkam ban peit ia ki data. kibabuhrieh
03:49 Ban ioh pyndonkam ia ka variable lane function da kajuh ka kyrteng, ngi pyndonkam da ka scope resolution operator ::.
03:56 Shubuh u local variable bad u global variable ki don kajuh ka kyrteng.
04:01 U local variable un ioh lad shwa.
04:05 Ngi lah ban pyndonkam ia u global variable da ka ba pyndonkam ::(scope resolution operator.)
04:10 Mynta, ngin phai sha ka program jong ngi.
04:12 Hangne ia ka jingdon jong u a la buh ha u x.
04:17 Nangta ngi ai ia ka area jong ka square.
04:20 Hangne u x u dei u dkhot jong ka private
04:22 Ban ioh pyndonkam ia u private parameter, Ngi pyndonkam ia u public member a.
04:27 Barabor ki dkhot jong kaprivate ki longba burieh beit.
04:30 Kane kadei ka main function. Jong ngi.
04:33 Hangne, sqr ka dei ka object jong ka class square.
04:37 Da kumne ngi thaw ia ka object.
04:40 class-name bud sa ka object-name.
04:43 Hangne, ngi khot ia ka function area da ka ba pyndonkam ia ka object sqr bad u .(dot) operator.
04:50 Nangta ngin sa ai ia ka argument kum 4.
04:53 Ngi buh ia ka jingdon jong u x kum 4.
04:57 Kane kadei ka return statement jong ngi.
04:59 Mynta klik ha ka Save.
05:00 Ia ngin execute ia ka program.
05:03 Plie ia ka terminal window da ka ba ñion Ctrl, Alt and T keys ryngkat lang ha ka keyboard jong phi.
05:11 Ban compile, type: g++ space class hyphen obj dot cpp space hyphen o space class
05:20 Ñion Enter.
05:22 Type./class(dot slash class).
05:24 Ñion Enter.
05:25 Ka output kan long kum:
05:28 Area of the square is 16
05:30 Mynta, ngin phai biang sha ka program jong ngi.
05:35 Haduh mynta ngi lah dep peit,
05:37 ba ia ki data bad functions la buhlang hapoh ka class.
05:41 class ka dei ka unit ba marwei
05:44 Ha kaba ka data bad ka function ba pyndonkam la pyniasoh
05:49 Kane ka rukom leh la khot kumka Encapsulation.
05:53 Nangta ngi la dep peit ia ka class bad ki dkhot kum ki private bad public
05:59 La buhrieh ia ki data jong ka private
06:02 Ym lah ban pyndonkam na shabar ka class.
06:05 Kane ka rukom leh la khot kum ka Data abstraction.
06:09 Ka rukom long ba shabar ne kainterface la lah ban iohi hynrei ia ka rukom pyntreikam la buhrieh
06:14 Da kane ngi la poi sha bakut kane ka jinghikai.
06:17 Ia ngin phai biang sha ka slides jong ngi.
06:19 Ia ngi peit lyngkot.
06:20 Ha kane ka jinghikai, ngi la dep peit:
06:23 * Encapsulation
06:24 * Data Abstraction
06:25 * Ki dkhot jong kaPrivate
06:27 int x;
06:29 *Ki Public function
06:30 int area(int);
06:32 * classes
06:33 class square
06:35 * Ban thaw ia ki object,
06:37 square sqr;
06:39 * Ban khot ia u function da ka ba pyndonkam object sqr dot area();
06:43 Kum ka assignment:
06:44 Thoh ia ka program ban wad ia u perimeter jong ka circle ba lah ai.
06:49 Peit ia ka video badon ha ka link ba pyni harum.
06:52 Ka batai lyngkot ia ka Spoken Tutorial project.
06:55 Lada phim don ia ka internet bastet, phi lah ban download bad peit ia ka.
07:00 Ka Spoken Tutorial Project team:
07:02 Ka ai jinghikai da ka ba pyndonkam ia ki spoken tutorials.
07:05 Ka Ai certificates ia kiba pass ia ka online test.
07:09 Na ka bynta ki jingtip ba khambniah, sngewbha thoh sha: contact@spoken-tutorial.org
07:16 Ka Spoken Tutorial Project ka dei bynta jong ka "Talk to a Teacher" project.
07:20 Ba la kyrshan da ka National Mission on Education lyngbaka ICT, MHRD, Sorkar jong ka ri India.
07:26 Ki Jingtip ba khambun halor kane ka kam kidon ha ka link ba pyni harum.
07:31 Kane ka jinghikai la ai sngewbha da U Arki Juh Dkhar.

Khublei ba iashim bynta.

Contributors and Content Editors

Mousumi, Thaw