You are on page 1of 6
L++ INerRview (ues. q] Fe Cee is an Obfer Orlented Programming /anguage « pr Was und $n 1985 by Bjayne Strouctrup- EEA ° Ctt afues programmer a high level OF contro! over fusterm anda memory o Crt Ss jot OF well - Structured And safar language then C © Ctt 3s next version of C. 2). (pba ave the aauantapes OF GP] 7 Ctr Is an Objet Orlented programming Janguage. ° Ct program Ps Useful fox ow — Jeuvel preg varmnming Janguage * Ctt js highly portable language, * Ctr Janguage used jn pnutti-device , multiplatform app dweopment- ° Ctt Ps multi- paradigm means It Plows three paradig™ Generic, Imperative , objet Orlented. * Ctt gives user Compete conto! over memo ry management. ° Ctr Is used In Various Inductries like Anane, app derelopment , game aevelopment’, Vytual really ete 3). Define poKen Ta Cre) 3 Toxen fs a Keyword ln a Ctr. And It also fdentGrer, literod, constant and symbol. a aL : 7 ‘Sta! 1s tne dePault namespace sandard used Wits SOUL LLL bbddd dddddddddddd AS / WWW UUL UU bodddddddddddddddddd C language utas doucloped |i). Crr language was developed by Dennis Ritchie by Byame Srroustrup- Q- che subset oF ct 2 cre fs Supercet oF C 3]. ¢ Is @ Structured programming |3). cpr supports both structural Se and objew oriented Programming language. G- C dees not support yne data uj. crt Supports +42 data niding. hiding. 5)- C does nor support yeFerenee |G): C++ Supports seferena Variable. Variable. <). [Daiine namespoa io cor] F + The namespace fs logical cluiston OF the Code whith Js pe 9} Ss designed fo stp naming conflict. The main use oF namespaw fn Ctr fs fo remove ambigalty, Using namespaus, we can create Huo variable having same name- Namespace is Feature added jn Crt and not Present inc. Namespaw dedarapons can be nested Dienin anothers pnamespaw . “Dl. (har is Baul form 0 ste fa ere] ZF full form OF sre is Standard Template Albyary. 5] (ow “eee ll is differen from delete? | 3 Delete 7s used po release a unit of memory « * duel) #5 used to yzelegce an array. Ade eumak CLINKEO IN). ATUL KemAe CLINKEDIAD . VWVUVOUUULULLEUdeddddddddddddddde’ Srroustyup PF + Destructor In Cr ave members Funutlons In @ Class thor delete an Obdjed destruurty Aas same name as class name vuctor fe Uceru for yeleasing yesources befose exttng a program uy. (BaRAE T= conctyuctov 7] F * Constsuctor )s used 40 Initialize an ober + Consteuctoe fs member Funutton of Class. blhose name ic game as class name. ruuror dees not have a return type: * Therefore it do net have yeturn type vo). (Bigiabo ale Petar] 3 Panter heids pre address of current ojeu- 15), [achat 1 aired fahren] F «+ Virtuol Inhertfane Pf Used fo remove gre ambiguity of bate clars + pdhen devieued class fnhevits some bace class vig other classes juring multiple Inheritan. 1]. FP fF scope vesolucton Operator (::) Ps used to define tre member Aintton Outthde tre class ATUL KUMAR CLINKEDIND~ fd de WVU UL UUU UC dddddddddddd 1") Pe fure Viytual functton Are one & ane Woy We concepruallse Absrat Classes * It fs essentially a Virtual funufon declared in the parent Class doesn't fave any )mplemenrarion oo nly has cleclayarion 1. [panar Tp Operaror overeastng | =? Operator Overloading jn Crt he an overlerded declatatton $6 @ cleclararfon In same scope of funetton oF operator declared wih the same name more than Once. 1 (apna Ts Type cate To ET] >> Type casting In © Ss used 4o change the dard type. + ft has two types: )- Lmpuct type conversion — ft ts automatic . 2) Explicit type conversion — Jt fs user defined. 18]. [at Psi steam Jo ere? ] > Ltream refers fo a Stream of characters 4o be franstesred between program thread and i/o. 14). [o@ go clear tereen to CH? | 2 fo clear tne screen using —cClrscr () or System (“clear”) 20]. [Gahat Fe caniowk In Cre? 3+ Canfo-h 1s a heqaer File used for console input and Output Operartons. + And It ts used fo creating ttt based User faterfaws. ATUL KUMAR (LINKEDIN). ATUA LUMAR CLINKED IN) - WWW UU bdddddddddddddddddd’d \S 2) (How tose space Mere? ] > We can give space Jn Ctt programming by cours" "+ D Jheve are 96 Keywords In Crr. 29 [RRR TS ena face] =F Endl 3s a predefined Obfet of ostream class fo Insert Q new {ne chayacrers. 2 [EB ory tae Yn eae] FP <. Cts) + Incest 40 Copy + ShIFE t Insert 4© faste- 28]. [bunati Pe Toskreara ja crt?) P Tostveam ig phe header File which contaln ail the Luncttons oF program (ike cout ty cin ete. allt en Function fn Corr String sty1 =“abed" Cour << "The length of String je: “<< Str—1. length ©) ; =F Fiuch Ps used 40 Synchronize phe assoclated spreqm buffer whith Wntyolled output Sequence - ATUL OMAR CHIMIKEDIAL) 7 eCceuwcce ~ i didi Ja Ja ] J Jf eovcec ixJhen all the data members and member funceton are combined Jn phe single unit called class f& pnhc procese P ailed encapsulation. 29). Lather Pe absrraw clare ta ce] 3° fin abstraw class i cannot be used swredtly and fr grit kum np, (LimKeDIA)) used 70 form a phase clats for other Inherit From * Ex-TF you create an objet OY aN Qhstrat class the Compiler pill throw an error fo you. COTOT ITT TTT TTI TTT TILL ATUL KOmMAR CAINKE DIN)

You might also like