Unit Pps First Year Jntu H
Unit Pps First Year Jntu H
d = nea sample combos Samples = Nevo Sample Sta AGRI 4 / *Encapsutarion Constructs — — Eneapsutation is derived. binding Aogeth er the data & funchon thot TAN) pulobes then, ®Encaputetor consruct acheive msing header dleg— ‘ -collecHon of related dota S functon getinihon can be placed 19 Mle such “le ou asa \ibmny, The interface aw such Ale includéng dota (AMppe S&Fundion declaration co placed into seperate Nie cated Header (123. | - Type declarakien con be Widder by devlaring Tepe anyeston . thom in neader ile: — There are wo Problem with th} : ois eDach @ documentation of c\fieny PTOFACD oY tHovaey los}- D Author of the Woranry change header fle £ fonplemenet - Scanned with CamScanner@tneaps atton 1D bead cH + langeage fs anhiwed b @ neaddHives ® classes. @ Ada Pack ages: — Ada package apect ficaifon con anclude any number of data & sUbprog Fao declyraHorn. in their re ic privoste section. -So the pacleaege up multiple type encapsutotion construct - & Naming Encapsutattong— ——-w+8$+____ — When we are writing any program there we ave, dectaring amutH ple variable , AeHning funcHon + declaring clossen, SO there awe chances thal name. of varioble nay confit ~To avoid Naming conflict. ® Namespaces in -cy+ ®D Paclcoge in Java Ada packages Ramespeces {), CEE Bi i: 9. th incletole vsing nawmerpace std’ namespace rsd: { Imt vol = 200 t ¥ int volelvo; Scanned with CamScannerint mone) 4 Int val=209 | cout << $ivsth i vob <<\'y/ , ren 0 | 4 5 ~We con we Namespace For classe: also. @Qfackayes 9 Java y— — Jovo include Paming en capsulotery conshuet s-e. Pag berg es, — FPeebayes can contin more then one ype aley'ni- Adon 4 packages ave pastol tytend ot one another ChawHal means entities depined in package are either Public o¥ protected ov NO access Specifier ase visible tm other Hype oF pacberge) - Entities without access moditfes are alt eof Porkaye scope . ~The package aeclavahon cust |ppear at tye nse Une of file HYNTOH | —_ Packard Strpkgy -9F package stwpkg has clas name eysiack. So Class can be wmeterenced a2 import strpkg-mystack 5 —~Vo access all of the Names in package -tmpost Stkpkg . #5 Scanned with CamScannerGada packages? — ~Ado packages wied encapsulatiors Vitbwery ies are delined jn hievarehres - visibility de a packetge fromm Progam unit ub gained aoith with clause °F) asith Ada Texto 3 H To aceess puLt Procedure . Ada »Text_To»+ put ; — Jo access names nvitbout qualifcahton use Aca “Text To; ~ Ada's ase so sfmilar +o Java's amor) Scanned with CamScanner