Jump to content

Oops Concepts Telugu Lo Chepandi Please


Recommended Posts

Posted

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 :)
  • Replies 43
  • Created
  • Last Reply

Top Posters In This Topic

  • dotnetrockz

    12

  • GalaxyOwner

    5

  • AnilaReddy

    5

  • MayaBazar

    2

Top Posters In This Topic

Posted

OOps concept ila telusukunee dhani kannaa Practice chesthaneee baga ardham ayyddhii, like eppudu Absraction classes use cheyyali eppudu Interfaces vadalii, rendo almost simillar functionalaties

Posted

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

Posted

ok override, hiding, constructors , etc avi kuda plz nissan bro

Posted

Asalu emi jarugutundi ikkada PK.gif

Posted

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

Posted

Asalu emi jarugutundi ikkada PK.gif

nuvvu enduku vachhav re chitti potti e thread loki....
Posted

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

Posted

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

}

}

Posted

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

Posted

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

×
×
  • Create New...