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.

 

We are Hiring Mobile Engineer Lead

Experience required for the Job: 8 - 10 years Job Location: Bengaluru/Bangalore Invensys Skelta is looking for Lead Mobile app engineers to drive the mobile strategy globally for its multiple products. The candidate should be enthusiastic to further the knowledge of cross-platform and multi-platform development and who makes things happen. Successful candidate will work closely with the project managers and development team globally to develop ideas, concepts, and solutions for mobile apps that help the brand meet their objectives. Person Specification: *    An expert in either iOS, Android or Windows Phone 8 *    Passion for Research & Development, and believes in simple, intuitive and scalable mobile applications that can help solve some of the biggest and complex problems *    An interest in techniques for producing portable cross-platform code and an attention to detail in all aspects of the development process; whether it"s making yo...

Looking for Drupal Themer

Location : Bangalore Position : Drupal Themer Job Responsibilities: • Work with Drupal Developer in porting pages to Drupal • Responsible for building Drupal themes and template files for themes for requirements specified Preferred profile: Strong Knowledge of Drupal coding standards. Strong grasp of semantic, HTML and CSS based design • Experience in converting PSDs and into functional Drupal themes from scratch • Experience in creating well-commented, Zen-based subthemes (http://drupal.org/project/zen) from provided layered Photoshop compositions, including creating and editing templates for different node-types and pages, editing .info files, and adding additional theme settings using the Drupal Form API. • Experience in adding, editing and deleting pages, users, user groups, blocks, and block areas on a pre-existing Drupal installation based on provided directions, text, pictures and wireframes • Experience in testing and modifying Drupal themes and stylesheets to ensure consistent...