[go: up one dir, main page]

0% found this document useful (0 votes)
21 views8 pages

Oops Using C

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF or read online on Scribd
0% found this document useful (0 votes)
21 views8 pages

Oops Using C

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF or read online on Scribd
You are on page 1/ 8
Class and Object. 2 What is class and Object 2 And how many access . Specifier In class. E (class= Class is o user defined datatype, | —vuhich holds tts 9v9n data member ANd member FuncHon {n Other uoyd We can ay Class {ts Collection of data member and _ Mmembey Functton. which can accessed ond use iby _CYeating ober’ GF that class. Oblerti fin Objet ts _an instance oF a _ | class. wihenevey class ic defined no ___ memory 1 ale ee initialized memory {ts allocated of hat class nev axe three types OF access speifier Bneecilas sia ae be T Public i Protected INSTAGRAM -ccodestl Syntoxe:- Class class nlame wo prlyate data member __ Member -Fun ction public: = Class demo x __fervate : int a, b' a Public + void input Cla dara member Cout<<"Gntey values”; Member Funct on Cin>> a>>bs pyote eds a | data Member Void shows ( > mlemnbeY Function i. =a __ | Every Sem} - Column. Nass Cnds Dit J ei Cout Compile me Polymorphism. [LP Runtime Pelymoxphism Citas i FES e Pol phism achteved by _| compile time called Static Lymn phism. Ext Method Overloading - Bolg £ D + oan SS aoe A Polyroxphicm vahich_achleved by Runtime, Caled Aynamic Poluyjorphism. Ex Meyied Oversiding DOWNLOAD PDF FROM TELEGRAM FICODING BUGS EINOTES GALLERY 5; [Nei add (int x, inty Qs Gastihs aiee aee é gid add Cint-x, teat y 2 ___ : Noid aadieanu /izacemelaes £ 3 Joid odd (-) I deylved +— [Pergon ]——> Cfeaner) ? what is Encapsulation ? Explain wlth example? [Tt ts one of -the most Important features of oops. “Wat used +o wiapping -tne data and Function intd 9 tingle unit: The data of class His not accessible +0 Outside the clase, only _ these Function access data which are ee 2 thet: GC ores Baa Sine —Ressoction 4 the oe nf ahe_erpe weporant | featuree n€& OOP's hich 1s showing only the essential infotmoation +© -the Outside world | end hidino, the_inteYnal_ details: lon i Class > HeaderFile INSTAGRAM -@codeatul pexsvate + Ink @ = (657 x Public: Verid Show) (7 #e Include < Moth -h > 4 Include < iostraam-h > Main t ) ae fe Int AZ4) by b= sat (ad Cour och

You might also like