Sunday, 6 September 2015

Then Kudika Lyrics (Maze In Idhayam)- TeeJay Featuring Pragathi Guru



TeeJay (Lyrics)



Intro -

Verse 1 (M)



Oliyaadhey Oliyaadhey,

Vekathil Vegathil, Marain-dhirindhaye



Oliyaadey Oliyaadhey,

Pakathil irundhumey, Yenga-irundhaye



Thean Nilavu, Tholaivil irundhum...mm

Thenbil-laamale Vandu Nerungudhey.

Kan mudi thirakum, Nerathil Vandu

Theaney marandhu Nila Rasikidhey hey!



Verse 2 (F)



Yeti paarkudhu Idhayam. Konjam porunga adhukuda Pesa.

Odi Oliyudhu Udhadum, Konjam porunga adhukuda Pesa...



Verse 3 (M)



Thotu Paarka thonumey, Konjam vekapadudhu Yen Vayase,

Pudikidhu un Moogamey, Konjam parthu adhukuda Pesa.



Chorus



Thean Kudika, Time is Thumping Slow

Thean Kudika, My Heart is pumping Slow.  (2x)



IF i Had to choose, Between LOVING or Breathing,

I'd Use my Last breathe to, SAY, I love You!



Verse 3 (F)



Rekai Yenmel Mullaikidhey,

Un vaasam enmele Veesi Oodhumbodhey,

Thuliyaal marandheney,

Yen Aasai sandhichen Marupadiyum.



(M)



Kalluthila Nandu oora,

koochathil sirikiren. Kiruku POLA!



(F)



Murukira Un Meesa,

Manasila Varaiyudhey, Un PERA!



(M)



Yen chandhiran pani thuliyal Iramey,

Soodana moochaley porvei porthen.



(F)



Yen Veyil theeyale, malai Thoorale,

kudai pidithum Un kooda nanenjen.

Velichum iruludhu, neram Nerungave

un viralgal Parithean.



(M)



Irutil Thoongadha, theanei yen Penne,

medhuvai rusithean

Yen Theanei!



Chorus



Thean Kudika, Time is Thumping Slow

Thean Kudika, My Heart is pumping Slow.  (2x)



IF i Had to choose, Between LOVING or Breathing,

I'd Use my Last breathe to, SAY, I love You!



Verse 4 (F)



Tholaiyadhey Tholaiyadhey

Oliyama un thunaiyai, irupen kana Nee.

Tholaiyadhey Tholaiyadhey

Vekathei Vitt-unaku  theanei Tharuven



(M)



Thean Nilavu, Tholaivil irundhum...mm

Thenbil-laamale Vandu Nerungudhey.

Kan mudi thirakum, Nerathil Vandu

Theaney marandhu Nila Rasikidhey hey!



Chorus



Thean Kudika, Time is Thumping Slow

Thean Kudika, My Heart is pumping Slow.  (2x)



IF i Had to choose, Between LOVING or Breathing,

I'd Use my Last breathe to, SAY, I love You

Thursday, 27 August 2015

Modhiram-Maze In Idhayam Lyrics -TeeJay Featuring Pragathi Guru...



Modhiram-Maze In Idhayam

Singers-Teejay-Chinmayi

Lyrics-Teejay(Saravana)





Maruthaani poosiyaval manathile,

varungaala manaivi ival Enake anbulla iniyavale..

Ithayathil kaychale marunthum thunai ila

Un kaal madi pothatha naan thalai saaynthu pizhaipenaa..



Oh udambil vairangal minunguthe..

Un mugam kannil olika

Thudikira ithayam minunnguthe

modhiram mati poga...

sooriyan nilavai ketkuthe..

Ulagathai vitu sella..

Thudikira ithayam minunnguthe

modhiram mati poga..

Uyire en kanavaga uranga

Thatti elupi athai nijam Akkinaai..

Ulagam athu un manathil kanden

Thooram sellamal katti kondaai....





Nenjil oonjalil Aadi en mel vilunthai

Aan imaiyil pen uthadu sikkiche..

Un arivil en vizhiyil paarvai kandu konden..

Pen kuralil Aan idhazhil vikkuche...



Kungumam poosiya silai poloru saamiya..

Veroru Ulagathula ena korthu poriye..



Pramanukku kelviye Ithayam Yaaruthu..

Athu padaithathu innoru idhayam avarthan ennulagu

Avar muzhu perai padika kavithai pirakume

Avar arukil irunthu mugam rasika kolangal kannukule



Oru thoosu pattathu pola kanne

karkandu kanne..

Sattentru kannil En uyirei Vaipen..



Ketti melam padave meti oli aaduthe

Sowkiyama Solli kan thiranthu kumbidave..

Thalikulla usuru purusan manathil mudichu

Unga ullathil kovil katti valathu kaalai  vaipen..



Un kaalai thottu naan vananga

En Nenjil ne kan urangu

Naan thitti seitha paavangalai

Kan moodi irutil maranthu vidu

Kan chaadaiyil un paasam karaiyathuma enai nambu

Sattentru muttuthu mutham..

unai thooki kaiyil sumapen...



Oh udambil vairangal minunguthe..

Un mugam kannil olika

Thudikira ithayam minunnguthe modhiram mati poga



Oh udambil vairangal minunguthe..

Un mugam kannil olika

Thudikira ithayam minunnguthe modhiram mati poga



Uyire en kanavaga uranga

Thatti elupi athai nijamakinal...

ulagam athu un manathil kanden

Thooram sellemal katti kondai



Nenjil oonjalil Aadi en mel vilunthai

Aan imaiyil pen uthadu sikkiche..

Un arivil en vizhiyil paarvai kandu konden..

Pen kuralil Aan idhazhil vikkuche...



for more visit saravanateejay.blogspot.in





-------------------------------------------------

Tuesday, 18 August 2015

Vaayadi-Maze in idhayam lyrics

Vaayadi-Maze In Idhayam
Singer-Teejay
Lyrics-Teejay(saravana)

Vaayadi-lyrics

Aalum aala kadhal kadal paayuthu thalam ninnalum vai moodathu
Aazham thanda one way-il traffic anathu
Neram ponalum kuyil koovuthu...

Ne thittum pothu rasipen pesum azhakai vaasipen
Ovvoru eluthilum mutham vaipen..

Kuzhanthai kavithai ketkiren kadhal kita payanthen...
Overa pesum kaaram rusipen...

Emanthu ponen ava sonna vaarthaiyaala
katchalil suttane kadhalil..

Pottu vangi vittu appettu aanale..
Oora kooti sonna ava enakunu than

vaayadi en muthukula mala eri kathaatha
Adiyathi Un udhatula mike irukaa...
vaayadi un vekathil en moocha vaangura
adiyathi nakil full stop poduven ah....


Sila per pechu kekum pothula kadhil sangu aatodum
Un soundu ketu sangu metreku mela pogama nikkum..
Perum pugazhum porati porati medhuvaaga eni eri varuvom
Eramale beldi adichu ava perum pugazhum vaayila vilangum..
Vikku vikku vikkal varuma.. 
Vanthalum vaai moodama viduma..
Vikkal nikkum munne vaayadi vayula vedi vaipen..
Thikku thikku thikkama theetu..
Thyavu senju palla theetu..
Summa sonne mythili en kadhali pallu epavum Sharpu..

Vaayadi en muthukula mala eri kathaatha
Adiyathi Un udhatula mike irukaa...
Vaayadi un vekathil en moocha vaangura
Adiyathi nakil full stop poduven ah....

Ava Enakkunu Thaan

Vaayadi en muthukula mala eri kathaatha
Adiyathi Un udhatula mike irukaa...
Vaayadi un vekathil en moocha vaangura
Adiyathi nakil full stop poduven ah....

Ava Enakkunu Thaan...
For more visit saravanateejay.blogspot.in
Or click below link
 

Friday, 31 July 2015

Omiya Lyrics-mp3- Teejay

OMIYA Lyrics



OMIYA Lyrics


 Usurre irrukum varrei nee enadhe,
Usurre ponallum naan varuven,
Usurre irrukum varrei nee enadhe…

Enakage nee ipo ena seidhai, thaiye thavikavitu odi vanthai,
Kadhal payanathei sollitu vaa, kadhallum thodarum yendrumey endrum,
Naladhukuthan solluren, unnavitu porra yennamum ille,
Unakage yepavum kathirupen, kadhal aliyaadhu yendrumey endrum,

Omiya omiya omiya omiya, omiya omiya,
You are my only miya,
Omiya omiya omiya omiya, omiya omiya,
You are my only mia,

Ussure nee enadhe.

Ariraro kanoram, un idhayam medhuvai thoongum,
Kanavellam kayil korthu, nejathil kondu vaa,
Ariraro kanoram, un idhayam medhuvai thoongum,
Thookathil bayamillama paarundhu sendru vaa,

Unnode serum bodhellam dhukangalum, siripil saindhidumey,
Unnil naan endran ennil neethane, enum oru naalil naan varuven,
Mun janalil yeti paarpiya?
Kadalil iruvarum purrakal pol sernthu parapom mia,
sernthuu parapom, mia sernthuu parapom, mia.

Usurre irrukum varrei nee enadhe,
Usurre ponallum naan varuven,
Usurre irrukum varrei nee enadhe.

Enakage nee ippo enna seidhai, thaiye thavikavitu odi vanthai,
Kadhal payanathei sollitu vaa, kadhallum thodarum yendrumey endrum,
Naladhukuthan solluren, unnavitu porra yennamum ille,
Unakage yepavum kathirupen, kadhal aliyaadhu yendrumey endrum,

Omiya omiya omiya omiya, omiya omiya,
You are my only miya,
Omiya omiya omiya omiya, omiya omiya,
You are my only MIYA.
   -Saravana raj

Download -mp3


***click here***to download omiya mp3


Inheritance

Inheritance

The process by which one class acquires the properties and functionalities of another class. Inheritance provides the idea of reusability of code and each sub class defines only those features that are unique to it.

Inheritance is a mechanism of defining a new class based on an existing class.
Inheritance enables reuse of code. Inheritance also provides scope for refinement of the existing class. Inheritance helps in specialization
The existing (or original) class is called the base class or super class or parent class. The new class which inherits from the base class is called the derived class or sub class or child class.
Inheritance implements the “Is-A” or “Kind Of/ Has-A” relationship.
Note : The biggest advantage of Inheritance is that, code in base class need not be rewritten in the derived class.
The member variables and methods of the base class can be used in the derived class as well.

Inheritance Example
Consider below two classes –

Class Teacher:

class Teacher {
   private String name;
   private double salary;
   private String subject;
   public Teacher (String tname)  {
       name = tname;
   }
   public String getName()  {
       return name;
   }
   private double getSalary()  {
       return salary;
   }
   private String  getSubject()  {
        return  subject;
   }
}
Class: OfficeStaff

class  OfficeStaff{
   private String name;
   private double salary;
   private String dept;
   public OfficeStaff (String sname)  {
      name = sname;
   }
   public String getName()  {
       return name;
   }
   private double  getSalary()  {
       return salary;
   }
   private String  getDept ()  {
       return dept;
   }
}
Points:
1) Both the classes share few common properties and methods. Thus repetition of code.
2) Creating a class which contains the common methods and properties.
3) The classes Teacher and OfficeStaff can inherit the all the common properties and methods from below Employee class

class Employee{
   private String name;
   private double salary;
   public Employee(String ename){
      name=ename;
   }
   public String getName(){
      return name;
   }
   private double getSalary(){
      return salary;
   }
}
4) Add individual methods and properties to it Once we have created a super class that defines the attributes common to a set of objects, it can be used to create any number of more specific subclasses
5) Any similar classes like Engineer, Principal can be generated as subclasses from the Employee class.
6) The parent class is termed super class and the inherited class is the sub class
7) A sub class is the specialized version of a super class – It inherits all of the instance variables and methods defined by the super class and adds its own, unique elements.
8) Although a sub class includes all of the members of its super class it can not access those members of the super class that have been declared as private.
9) A reference variable of a super class can be assigned to a reference to any sub class derived from that super class
i.e. Employee emp = new Teacher();

Note: Multi-level inheritance is allowed in Java but not multiple inheritance



Types of Inheritance
   

Multiple Inheritance
           “Multiple Inheritance” refers to the concept of one class inheriting from more than one base class. The inheritance we learnt earlier had the concept of one base class or parent. The problem with “multiple inheritance” is that the derived class will have to manage the dependency on two base classes.

Note 1: Multiple Inheritance is very rarely used in software projects. Using Multiple inheritance often leads to problems in the hierarchy. This results in unwanted complexity when further extending the class.

Note 2: Most of the new OO languages like Small Talk, Java, C# do not support Multiple inheritance 

3) Multilevel Inheritance

Multilevel inheritance refers to a mechanism in OO technology where one can inherit from a derived class, thereby making this derived class the base class for the new class. As you can see in below flow diagram C is subclass or child class of B and B is a child class of A. For more details and example refer – Multilevel inheritance in Java.



Multilevel Inheritance example program in Java

Class X
{
   public void methodX()
   {
     System.out.println("Class X method");
   }
}
Class Y extends X
{
public void methodY()
{
System.out.println("class Y method");
}
}
Class Z extends Y
{
   public void methodZ()
   {
     System.out.println("class Z method");
   }
   public static void main(String args[])
   {
     Z obj = new Z();
     obj.methodX(); //calling grand parent class method
     obj.methodY(); //calling parent class method
     obj.methodZ(); //calling local method
  }
}
4) Hierarchical Inheritance

In such kind of inheritance one class is inherited by many sub classes. In below example class B,C and D inherits the same class A. A is parent class (or base class) of B,C & D. Read More at – Hierarchical Inheritance in java with example program.



5) Hybrid Inheritance

In simple terms you can say that Hybrid inheritance is a combination of Single and Multiple inheritance. A typical flow diagram would look like below. A hybrid inheritance can be achieved in the java in a same way as multiple inheritance can be!! Using interfaces. yes you heard it right. By using interfaces you can have multiple as well as hybrid inheritance in Java.

Wednesday, 29 July 2015

Aasai Song Lyrics - TeeJay Featuring pragathi Guru...



Intro

Chorus



Enaku Oru Aasa

Enaku Oru Aasa...

Enaku oru aassa iruku (2x)



Pesi palagi paarthu purinjuka'nu

Pudicha apuram Kaa,dhalikonum

Mutham kuduthu kalampura anachikaa'nu ... yen aasa avaley



Enaku Oru Aasa

Enaku Oru Aasa...

Enaku oru aassa iruku (2x)



(Bridge)



Verse 1



Avala kandeney, Ava vera yaarum illa, neethan...

edam pudicha manasila.

Aasa Aasa vachirundha,aadha yeppavum vachirupen



Adho ange odadhu Aaru, aathorama unkuda naan,

vekam vittu aasaiya veesa manasum thaiyangudhey



Kaadhal mudhal sonnadhu yaaru ?

Kelvi kettu kaathirunndho, Bayam illama nenja nimithi, unmaiya pesina...

Kannava idhu nijama inu, Kili paarthum ketta...Enaku oru aassa iruku



(Bridge)



Verse 2



Apu Saamy, un aasa'ellam saamikitta soliten, sol'aiya?

Maanja Thaali, un kaalithila mudichika aasa, katti vidava?



Aasa Aasa vachirundha, aadha yeppavum vachirupen

Paasa Kaara un maadiyil vilundhu, kadheigal solluven...



Una polla oru chinna PaPa, pethu tharuviya'ma ?

Illanidha sonna paavam, paiyan thanguven'na ?



Kenji ketta, Konji Ketta, Kaya pidichu kettiye...

Enaku Oru Aasa

Enaku Oru Aasa...Enaku oru aassa iruku



Pesi palagi paarthu purinjuka'nu

Pudicha apuram Kaa,dhalikonum

Mutham kuduthu kalampura anachikaa'nu ... yen aasa avaney



Chorus



Enaku Oru Aasa

Enaku Oru Aasa...



Enaku oru AASA, avaley



Download maze in Idhayam album songs


First on net click the link to download Teejay's new maze in idhayam album
Click to

download

Sunday, 26 July 2015

Maze in idhayam-Track List

Proudly Present the Official Track List:
Lyrics & Melody Composed by TeeJay
1. Home Sweet Home Ft. Sandhiv
Prod by Switch Lock Up
2. Bommei
Prod by Neroshen Thanaseharan
3. Therinjo Theriyamalo Ft. MC SAI & Sonali
Prod by Princeten Charles
4. Humssana Ft. Shakthisree Gopalan
Prod by Steve Cliff
5. Vaayadi
Prod by Neroshen
6. Gollusey
Prod by Vernon 'G' Segaram
7. Thean Kudika Ft. Pragathi Guruprasad
Prod by Steve Cliff
8. Mayavan
Prod by Princeten
9. Modhiram Mati Poga Ft. Chinmayi Sripada
Prod by Kausikan Sivalingam
10. Lost in Maze Ft. RABBIT.MAC
Prod by Rabbit Mac
(BONUS)
11. Vaanavil [New]
Prod by VGS
Due to Time, we missed out several other unfinished Tracks, which we will Release as Singles. I feel happy to have worked with all these great Artistes & Producers. Thank you to Marcin Studios & Charles Bosco Studios for recording me.
‪#‎MAZEinIdhayam‬ - CD's can be ordered via rstars.bigcartel.com

Tuesday, 14 July 2015

Muttu Muttu lyrics-Teejay


Song: Muttu Muttu
Singer: TeeJay Featuring MC SAI & SriMathumitha
Lyrics by: TeeJay
Rap Lyrics by: MC SAI
Music, Mixing & Mastering: Gaji
Background Music: TeeJay

Intro ( TeeJay )

Unnai angey kaangiren,
Un pakkam varavaa?
Yaar yevarendru theriyavilai,
irundhalum palagalaam...

Unnai angey kaangiren,
Un pakkam varavaa?
Yaar yevarendru theriyavilai,
irundhalum palagalaam...

-Chorus-

Muttu Muttu Enna Muttu,
Idichu pora vekkatha vitthu,
Kolanthai pola,
Kolappadi kaathu,
Yaar intha thaavani?...

Nethiyila Irukuthu potthu,
Adhukum Keela kalla siripu,
Motthathila unakintha paatu,
Vaa vanthu aadu nee!...

(Bridge)

Verse 1

Mun Jenmam,
Unnai partha nyabagam,
hmmm...
Yen manasil nee irupathu nichiyam!...

Anbe!
Anbana kutthuvilake ,
Yennai Varavaithaai,
Un alagai kandu Muttininen indru,
Ennai Kolaikondaai...

Aadi paadu nee kondaadu,
Jodi seralaam yennodu
kaiye pidichika anbodu,
Nee Vaa...
vaa vaa, vaa, vaavaa...

Chorus

Muttu muttu enna muttu,
Idichu pora vekkatha vitthu,
Kolanthai pola,
Kolappadi kaathu,
Yaar intha thavani?...

Nethiyila Irukuthu potthu,
Adhukum Keela kalla siripu,
Motthathila unakintha paatu,
Vaa vanthu aadu nee!...
 
RAP ( MC SAI )

Ah!
Sooriyan pathingi iruLum,
Pinthaandi varum Vaanam,
Mellana veesum kaatru,
Saralgal thoovi thoorum,
Ippolam aasaigal athu mela vaipadhila!,
Un mela aasa vachen,
Sollu penne enna vila ?..

Muttu muttu enna muttu
Unnudaiya vekkam Vitthu,
Paarva sotthu enna thotthu,
Pookuthadi poovin Mottu,
Vaadi en inba Raani,
Thaagathuku thanni kodu,
konjam nee vekapatthu,
Enakulla vitthu kodu,
Maaman naan poothiruken,
Raaman pola kaathiruken
Kadigaaram kaatthu nikke,
Unna enna serthuvaika,
Paaru!
En Sundari kovakaara ponnu nee,
Mela vanthu Katthipidi ,
varungaala manaivi,
Muttu muttu enna muttu
Unnoda vekkam vitthu,
Maamana muttu,
Unnathu netthi Naduvu,
Sticker Potthu,
Yaar intha thaavani?


Verse 2 ( TeeJay )

Mella mella paarthen,
Unne ishtapattu naanum rasithen,
Ennakulla Ketthen,
Nee Enekaage vandhvalnunu ketthen...

Unne vidu alaginga illa,
Irundhalum neethan alagu,
Thalli nindu rasikiren unne,
Pakkam vara bayema iruku....

-Srimathumitha-

Aadi paadu nee kondaadu
Jodi seralaam ennodu
kaiye pudichika anbodu,
Nee Vaa
ah vaa vaa vaa,
vaavaa

Muttu muttu enna muttu...
Ooho..
Muttu muttu enna muttu,
Idichi pora Style'ah paarthu,
Kolanthai pola kolapadi kaathu
Unnethaa...Ingga Vaaya!

Un manasukkula irukira ponnu,
Yaarunu sollu sollu,
Ishtapatthu unakintha song'u,
Saa Ree Gaa'Maa Gaa Ree Saa,
Saa Ree Gaa'Maa Gaa Ree Saa,
Muttu muttu enna muttu ...
Lagila Lagila lahi lele,
sahila sahila sahi lele,
Mahila Mahila Mahi le le,
Le Le,
Leylele!

Outro ( TeeJay )

Nee Engge ?
Thedugiren...
En pakkam Varalaam

Srimathumitha

Yaar evarendru theriyavilai
Irundhalum ..mm..na na na na

Monday, 13 July 2015

Begin PHP


PHP Beginner Learning Point

Hello Learner ,

This is a blog for the begineer to learn PHP in easy step. We will guide you how to Install PHP and run your first php Program.

Firstly you must know what is the stand for PHP its a Preprocessor Hyper Text Language. PHP is a server side scripting language. Basically PHP is used for running server side script like
echo "Hello Word!!";

Here echo is a function which print the value or variable on the brow ser.

I prefer you to learn basic from the official site i,e www.php.net

Steps:
1.Install latest version of wamp server
2.Install any Text Editor (I prefer notepad++)

Bommei lyrics-Teejay


 Uyir Illadha Bommei
Pinju Manasilla Verum Panje
Aadhil Unarvu thachadhu Penne
Odi Vilayaduthu Nenje

Avasirathila Budhi
Alaginil Siki
Thanei Marakudhu
Yen Pakathil Thoongi
elundhathum Odi
Maraivadhu Nooru

kaalayilla, thanimayil Oomaiya Nan iruka
Ava Pera Solamudiyama Thavika,
Maalay irutu Siraiyil Uravei Thedugiren

Raathiriyil, Oru kadhavu mela Thiraka
Velicham ava mugathila Veesa
Konjam Neram paarthu, Porvayil Pirivaaley.

Bommei Bommei Oommei Bommei
Bommei Bommei Oommei Bommei
Bommei Bommei Oommei Bommei
Bommei Bommei,
Oommei Bommei! Ari Mugam aanen, Un Pirandhanal parisaga
Marai Mugam aanen, Un Paasathey vitu Loosaga.
enaku enge Sorgam? Nan piranthadhe Unakaga
Apo yen inda Naragam!
Idhuva enaku thandhai parisaga?

Bommei Bommei Oommei Bommei
Bommei Bommei Oommei Bommei
Bommei Bommei Oommei Bommei
Bommei ...

Nee Peru Vacha Bommeikulla Uyir irukei.
Dhoosu patu IDHAYAM Pinju Nool Aagudhu.
Serupu kuda thachu podura Aanbudaney
Dhaivu senju mugathila irukum Siripa Thachukudu :(Yen Saamy Nee
Un Aasirvadham Podhumey.
Bommei Sirayil vitu Pilaipen ...
Oru Naalil naan. Uyirodu unudan Vaala venum
Yen Vaalvuku Oru Nimadhiye.

Bommei Bommei Oommei Bommei
Bommei Bommei Oommei Bommei
Bommei Bommei Oommei Bommei
Bommei Bommei,
Oommei Bommei! Kaalayilla, thanimayil Oomaiya Nan iruka
Ava Pera Solamudiyama Thavika,
Maalay irutu Siraiyil Uravei Thedugiren

Raathiriyil, Oru kadhavu mela Thiraka
Velicham ava mugathila Veesa
Konjam Neram paarthu...

Thursday, 25 June 2015

Polymorphism


Polymorphism

Polymorphism is a feature that allows one interface to be used for a general class of actions. It’s an operation may exhibit different behavior in different instances. The behavior depends on the types of data used in the operation. It plays an important role in allowing objects having different internal structures to share the same external interface. Polymorphism is extensively used in implementing inheritance.

Types of Polymorphism

1) Static Polymorphism
2) Dynamic Polymorphism

Static Polymorphism:
              Function Overloading – within same class more than one method having same name but differing in signature.
Resolved during compilation time.
Return type is not part of method signature.

Dynamic Polymorphism
                 Function Overriding – keeping the signature and return type same, method in the base class is redefined in the derived class.
Resolved during run time.
Which method to be invoked is decided by the object that the reference points to and not by the type of the reference.

Overriding:
      Redefining a super class method in a sub class is called method overriding.
The method signature ie. method name, parameter list and return type have to match exactly.
The overridden method can widen the accessibility but not narrow it, ie if it is private in the base class, the child class can make it public but not vice versa.

Overriding Examples:
          Consider a Super Class Doctor and Subclass Surgeon. Class Doctor has a method treatPatient(). Surgeon overrides treatPatient method ie gives a new definition to the method.

Doctor doctorObj = new Doctor();
// Call the treatPatient method of Doctor class
doctorObj.treatPatient()
Surgeon surgeonObj = new Surgeon();
// Call the treatPatient method of Surgeon class
surgeonObj.treatPatient()
Doctor obj = new Surgeon();
// calls Surgeon’s treatPatient method as the reference is pointing to Surgeon
obj.treatPatient();
Method/Function Overloading:
Method Overloading refers to the practice of using the same name to denote several different operations. Overloading can be done for both functions as well as operators. Here we look at only Method overloading.
Declaration:

void SomeMethod (int value);
void SomeMethod (float value);
void SomeMethod (char value);
void SomeMethod (String* str);
void SomeMethod (char* str);

           All the five methods are called ‘SomeMethod ’. All the methods have the same name, but different signatures.

The concept of the same function name with different types of parameters being passed is called Function Overloading.
1) In Overloading we can reuse the same method name by changing the arguments.
2) Overloaded methods- Must and Must Not Facts:

The Overloaded method must have different argument lists,
Can have different return types but in that case it is mandatory to have different argument list.
Can have different access modifiers and
Can throw different exceptions
3) Methods can be overloaded in the same as well as the sub classes.

Q: What determines which overridden method is used at runtime?
A: Object type
Q: What determines which overloaded method will be used at compile time?
A: Reference type determines. Operator overloading refers to the operators like ‘+’ being used for different purposes based on the data type on either side of the operator.

Inheritance

Inheritance

The process by which one class acquires the properties and functionalities of another class. Inheritance provides the idea of reusability of code and each sub class defines only those features that are unique to it.

Inheritance is a mechanism of defining a new class based on an existing class.
Inheritance enables reuse of code. Inheritance also provides scope for refinement of the existing class. Inheritance helps in specialization
The existing (or original) class is called the base class or super class or parent class. The new class which inherits from the base class is called the derived class or sub class or child class.
Inheritance implements the “Is-A” or “Kind Of/ Has-A” relationship.
Note : The biggest advantage of Inheritance is that, code in base class need not be rewritten in the derived class.
The member variables and methods of the base class can be used in the derived class as well.

Inheritance Example
Consider below two classes –

Class Teacher:

class Teacher {
   private String name;
   private double salary;
   private String subject;
   public Teacher (String tname)  {
       name = tname;
   }
   public String getName()  {
       return name;
   }
   private double getSalary()  {
       return salary;
   }
   private String  getSubject()  {
        return  subject;
   }
}
Class: OfficeStaff

class  OfficeStaff{
   private String name;
   private double salary;
   private String dept;
   public OfficeStaff (String sname)  {
      name = sname;
   }
   public String getName()  {
       return name;
   }
   private double  getSalary()  {
       return salary;
   }
   private String  getDept ()  {
       return dept;
   }
}
Points:
1) Both the classes share few common properties and methods. Thus repetition of code.
2) Creating a class which contains the common methods and properties.
3) The classes Teacher and OfficeStaff can inherit the all the common properties and methods from below Employee class

class Employee{
   private String name;
   private double salary;
   public Employee(String ename){
      name=ename;
   }
   public String getName(){
      return name;
   }
   private double getSalary(){
      return salary;
   }
}
4) Add individual methods and properties to it Once we have created a super class that defines the attributes common to a set of objects, it can be used to create any number of more specific subclasses
5) Any similar classes like Engineer, Principal can be generated as subclasses from the Employee class.
6) The parent class is termed super class and the inherited class is the sub class
7) A sub class is the specialized version of a super class – It inherits all of the instance variables and methods defined by the super class and adds its own, unique elements.
8) Although a sub class includes all of the members of its super class it can not access those members of the super class that have been declared as private.
9) A reference variable of a super class can be assigned to a reference to any sub class derived from that super class
i.e. Employee emp = new Teacher();

Note: Multi-level inheritance is allowed in Java but not multiple inheritance



Types of Inheritance
     
 Multilevel Inheritance
                   Multilevel inheritance refers to a mechanism in OO technology where one can inherit from a derived class, thereby making this derived class the base class for the new class.

Multiple Inheritance
           “Multiple Inheritance” refers to the concept of one class inheriting from more than one base class. The inheritance we learnt earlier had the concept of one base class or parent. The problem with “multiple inheritance” is that the derived class will have to manage the dependency on two base classes.

Note 1: Multiple Inheritance is very rarely used in software projects. Using Multiple inheritance often leads to problems in the hierarchy. This results in unwanted complexity when further extending the class.

Note 2: Most of the new OO languages like Small Talk, Java, C# do not support Multiple in

Object Oriented Programming by saravana raj

Object
Object:  is a bundle of related variables and functions (also known methods).

Objects share two characteristics: They have State and Behavior.
State: State is a well defined condition of an item. A state captures the relevant aspects of an object
Behavior: Behavior is the observable effects of an operation or event,

Examples:
eg 1:
Object: House
State: Current Location, Color, Area of House etc
Behavior: Close/Open main door.

eg 2:
Object: – Car
State: Color, Make
Behavior: Climb Uphill, Accelerate, SlowDown etc

Note: Everything a software object knows (State) and can do (Behavior) is represented by variables and methods (functions) in the object respectively.

Characteristics of Objects:

Abstraction
Encapsulation
Message passing

Message passing
   
             A single object by itself may not be very useful. An application contains many objects. One object interacts with another object by invoking methods (or functions) on that object. Through the interaction of objects, programmers achieve a higher order of functionality which has complex behavior.
One object invoking methods on another object is known as Message passing.
It is also referred to as Method Invocation.



Class
          A class is a prototype that defines the variables and the methods common to all objects of a certain kind. Member Functions operate upon the member variables of the class. An Object is created when a class in instantiated.

How to create an Object?
An object is created when a class is instantiated

Declaring an Object of class :

  ClassName Objectname;
Object definition is done by calling the class constructor

Introduction to Java by saravana raj


JAVA was developed by Sun Microsystems Inc in 1991, later acquired by Oracle Corporation. It was conceived by James Gosling and Patrick Naughton. It is a simple programming language.  Writing, compiling and debugging a program is easy in java.  It helps to create modular programs and reusable code.

Main Features of JAVA

Java is a platform independent language

To understand the meaning of platform independent, we must need to understand the meaning of platform first. A platform is a pre-existing environment in which a program runs, obeying its constraints, and making use of its facilities.
Lets back to the point. During compilation, the compiler converts java program to its byte code. This byte code can run on any platform such as Windows, Linux, Mac/OS etc. Which means a program that is compiled on windows can run on Linux and vice-versa. This is why java is known as platform independent language.

Java is an Object Oriented language

Object oriented programming is a way of organizing programs as collection of objects, each of which represents an instance of a class.

4 main concepts of Object Oriented programming are:

Abstraction
Encapsulation
Inheritance
Polymorphism
Simple

Java is considered as one of simple language because it does not have complex features like Operator overloading, Multiple inheritance, pointers and Explicit memory allocation.

Robust Language

Two main problems that cause program failures are memory management mistakes and mishandled runtime errors. Java handles both of them efficiently.
1) Memory management mistakes can be overcome by garbage collection.  Garbage collection is automatic de-allocation of objects which are no longer needed.
2) Mishandled runtime errors are resolved by Exception Handling procedures.

Secure

It provides a virtual firewall between the application and the computer.  Java codes are confined within Java Runtime Environment (JRE) thus it does not grant unauthorized access on the system resources.

Java is distributed

Using java programming language we can create distributed applications. RMI(Remote Method Invocation) and EJB(Enterprise Java Beans) are used for creating distributed applications in java. In simple words: The java programs can be distributed on more than one systems that are connected to each other using internet connection. Objects on one JVM (java virtual machine) can execute procedures on a remote JVM.

Multithreading

Java supports multithreading. It enables a program to perform several tasks simultaneously.

Portable

As discussed above, java code that is written on one machine can run on another machine. The platform independent byte code can be carried to any platform for execution that makes java code portable.