GalaxyOwner Posted June 23, 2015 Author Report Posted June 23, 2015 polymorphism ante peru lo ne undhi...many forms ani oka obj ki diff forms undochu...based on how its passed....deeni epxlain cheyyalante konchem different let me check any code Yeah Koncham explain chey bro :)
karna11 Posted June 23, 2015 Report Posted June 23, 2015 OOps concept ila telusukunee dhani kannaa Practice chesthaneee baga ardham ayyddhii, like eppudu Absraction classes use cheyyali eppudu Interfaces vadalii, rendo almost simillar functionalaties
dotnetrockz Posted June 23, 2015 Report Posted June 23, 2015 OOps concept ila telusukunee dhani kannaa Practice chesthaneee baga ardham ayyddhii, like eppudu Absraction classes use cheyyali eppudu Interfaces vadalii, rendo almost simillar functionalaties +116 just open visual studio or eclipse and write a class create an object for that class create variables inside the class..define methods compile the project into an assembly..use this assembly by refrencing dll u'll understnad each concpet one by one.......just explaination is for theoritical undertsnading...practice chesthene vasthayi ivvani
AnilaReddy Posted June 23, 2015 Report Posted June 23, 2015 ok override, hiding, constructors , etc avi kuda plz nissan bro
dotnetrockz Posted June 23, 2015 Report Posted June 23, 2015 constructor ante...edhaian object ni construct chesthundhi like nuvvu first time oka object create chesavu anuko aa class object will access this constructor and it will define basic propertie sof the object..parthi class ki oka base constructor untadhi(free annamata....even if u dont define or write code)...u can write ur own constructor like a separet code and call that when u instanitae an object exmaple public class a { int i string j public a() { idhi contsructor } } so nuvvu a obja =new a(); ani code rasinappudu aa constructor call velthundhi and it will construct a new object....ante ee obja ki variable i value will be 0--(default value for int) and default string value for j) alag enee sontha constructor rasukovachu public a(int i,string j) { custom constructor } ippudu when craeting obj a objA=new a(1,'test'); ante objA varaible values will be 1 and test
MayaBazar Posted June 23, 2015 Report Posted June 23, 2015 Asalu emi jarugutundi ikkada nuvvu enduku vachhav re chitti potti e thread loki....
dotnetrockz Posted June 23, 2015 Report Posted June 23, 2015 hiding u can do with access modifiers like private,public,internal and protected public ante ekkadanan access cheyyochu internal ante only current "assembly" ke parimitham protected ante aa class lo and aa class ni inherit chesukune classes lo matrame access cheyyachu private ante its accessible only inside that class
dotnetrockz Posted June 23, 2015 Report Posted June 23, 2015 override ante inthakamundhu cheppina inheritance concept nucnhi nuvvu oka class ni inherit chesukunte u can access that class methods and properties suppose class vehihcle { public int getmileage() { this method will return mileage based on some generic logic } } public class car:vehichle//ila inherit cheuskunte u will be able to access the methods inside the class and vatini marchachu(overirde cheyyach) { public override int getmileage() { //ikkada u will write logic to cal mileage for a car } }
AnilaReddy Posted June 23, 2015 Report Posted June 23, 2015 bro constructors and over ride confusing unay
dotnetrockz Posted June 23, 2015 Report Posted June 23, 2015 bro constructors and over ride confusing unay em confusion....override ante oka method functionality ni marchadam..asanti avasarm eppudu vasthundhi and endhuku avsthundhi?? when u think that logic inside that method doesnt suit that class behaviour(refer to the example i gave) overridingh usually nuvvu inheritance applyc hesthene avasaram and constructor anedhi oka kind of method(not exactly but chudadaniki laga untundhi)..aa constructor ni nuvvu neeku avasaram ainattu marchukuntunnavu(ante kothadhi rasthavu with providing parameters)..daanine overloading antaru since ur mentioning params.. practice chesi chudu and u will understand what is overriding vs overloading
AnilaReddy Posted June 23, 2015 Report Posted June 23, 2015 em confusion....override ante oka method functionality ni marchadam..asanti avasarm eppudu vasthundhi and endhuku avsthundhi?? when u think that logic inside that method doesnt suit that class behaviour(refer to the example i gave) overridingh usually nuvvu inheritance applyc hesthene avasaram and constructor anedhi oka kind of method(not exactly but chudadaniki laga untundhi)..aa constructor ni nuvvu neeku avasaram ainattu marchukuntunnavu(ante kothadhi rasthavu with providing parameters)..daanine overloading antaru since ur mentioning params.. practice chesi chudu and u will understand what is overriding vs overloading thanks bro samaj ayndi
GalaxyOwner Posted June 23, 2015 Author Report Posted June 23, 2015 Thanks bro Mari get set concept enti
Recommended Posts