Skip to main content

Openings for different technoogies.

What is the relation between Classes and Objects?

 They look very much same but are not same.

  1. A class is a definition, while an object is an instance of the class.
  2. A class is a blueprint while objects are actual objects existing in the real world.

Suppose we have a class Person which has attributes and methods like name, age, height, weight, color etc.

Class Person is just a prototype, now we can create real-time objects of class Person.

#Example: Ajay is real time object of class Person, which have name=Ajay, age=23, height=170cm, weight=60kg and color=black etc.

Class
  1. A way to bind data and associated functions together.
  2. Class have many objects.
  3. Class is a template for creating objects.
  4. It is logical existence.
  5. Memory space is not allocated, when it is created.
  6. Definition (Declaration) is created once.
  7. Class is declared using "class" keyword.
Object
  1. Basic runtime entity in object oriented environment.
  2. Object belongs to only class.
  3. Object are a implementation of class.
  4. It is physical existence.
  5. Memory space is allocated when it is created.
  6. It is created many times as you required.
  7. Object is the instance or variable of class.

Comments

Popular posts from this blog

Openings for different technoogies.

 

Walk in for Networking Executives On 29th Nov

Company        Infosys BPO Ltd Website          www.infosysbpo.com Eligibility        Graduates/Diploma Experience     1-3 Years Location         Chennai Infosys BPO Ltd Job Role: Networking Executives Job Summary : 1. Working experience in supporting network related queries 2. Knowledge on switches, Rouers, Hubs, LAN'S,WAN'S etc is preferred QUALIFICATION: 1. Only graduates with 10+2+3 2. Diploma 10+2+3 SKILLSETS: Good communication skills. Strong analytical and problem solving skills. EXPERIENCE 18 to 36 months experience in the relevant field only OTHERS Flexibility to work in shifts Walkins for Networking Executives on 29th Nov 2012 *****Interview Slots******* ******10:30 AM & 1:00 PM & 3:00 PM***** Walk-In Venue: Infosys BPO 3rd Floor, Hardy Towers Ramanujam IT Park Next to Tidal Taramani (Tirumanviyur...

SBI Hiring Probationary Officers

Company        SBI(State Bank Of India) Website          www.sbi.co.in Eligibility        Any Degree Experience     Freshers Location         Anywhere in India SBI(State Bank Of India) Job Role: Probationary Officers (POs) Job Summary : Eligibility Criteria: Graduation in any discipline from a recognised University or any equivalent qualification recognised as such by the Central Government. Age Limit: As on 01.01.2013 Not below 21 years and not above 30 years as on 01.01.2013 i.e candidates must have been born not earlier than 02.01.1983 and not later than 01.01.1992 (both days inclusive) ONLINE REGISTRATION OF APPLICATION: 30.01.2013 TO 23.02.2013 PAYMENT OF FEES - ONLINE : 30.01.2013 TO 23.02.2013 PAYMENT OF FEES - OFFLINE : 01.02.2013 TO 28.02.2013 DATE OF WRITTEN EXAMINATION : 28.04.2013 More Details: http://w...