UrbanPro

Learn Java Training from the Best Tutors

  • Affordable fees
  • 1-1 or Group class
  • Flexible Timings
  • Verified Tutors

Search in

What do you understand by Object and Class?

Asked by Last Modified  

18 Answers

Learn Java

Follow 8
Answer

Please enter your answer

A class provides the blueprints for objects. So basically, an object is created from a class. That can be used anywhere as you wish.
Comments

Class is a definition, and object is an implementation/instance of it.Consider an example of a class Vehicle. The properties of vehicles are:The number of wheels, Avg. Speed, number of seats, fuel type, etc. It can be instansiated by providing a values to the properties. like Car = etc.Aeroplane = ...
read more

Class is a definition, and object is an implementation/instance of it.
Consider an example of a class Vehicle. The properties of vehicles are:
The number of wheels, Avg. Speed, number of seats, fuel type, etc.
It can be instansiated by providing a values to the properties. like
Car = [number of wheels = 4, Avg. Speed=100km/hr, number of seats=5, fuel type=petrol] etc.
Aeroplane = [number of wheels = 3, Avg. Speed=700km/hr, number of seats=150, fuel type=petrol]
Bicycle = [number of wheels = 2, Avg. Speed=30km/hr, number of seats=1, fuel type=none]
Here Vehicle is a class only with the properties' definition of the properties have no absolute values. Whereas Car, Bicycle, Aeroplane are objects of type Vehicle class.

read less
Comments

Expert-level Java Trainer has extensive knowledge of Java programming

An object is memory that can represent the data of real object , class is plan for object memory structure so we can say class is also a data typed for creating objects
Comments

Experienced IT Trainer, Academic Associate, IT Enthusiast

Object: Object is the instance of the classes. The object is a bundle of software containing relatedvariables and methods. It contains data and code to operate on those data (functions). Objects are the basic run-time entities of the programming, based on object-orientation. These are the central entities...
read more

Object: Object is the instance of the classes. The object is a bundle of software containing related
variables and methods. It contains data and code to operate on those data (functions). Objects are the basic run-time entities of the programming, based on object-orientation. These are the central entities behind the object-oriented programming approach. It may be a person, place, or any data item. It may be any item that the program has to handle.

Classes: A class describes a group of objects with similar properties, common behavior, and common relationships to other objects. It is a collection of objects of similar types. It is a user-defined data type that can be used, just like any other basic data type, to declare variables. The class variables are known as objects or instances of a class, which are the central idea of the object-oriented programming approach.

read less
Comments

Object and any thing exist in the world that is either living or non-living. For e.g. a pen, a book etc. An object is an instance of a class. A class is a group of similar objects. for example Animal is a class and cat, dog, cow etc are the objects of the Animal class.
read more

Object and any thing exist in the world that is either living or non-living. For e.g. a pen, a book etc. An object is an instance of a class. A class is a group of similar objects. for example Animal is a class and cat, dog, cow etc are the objects of the Animal class.

read less
1 Comments

I am an entrepreneur and have more than 35 years of experience in the IT industry

Class is a blue print of objects. Like the blue print of a house, this is like an ammonia blue print (paper) and the actual house that was constructed from the blue print is an object. You can construct as many houses from the same blue print.
Comments

The object is an instance of a class. Class is a blueprint or template from which objects are created. An object is a real-world entity.
Comments

Post Graduation Diploma In Information Technology B.E.(ECE)

Object is an instance of a class. Class is a blueprint or template from which objects are created. Object is a real world entity
Comments

At the most abstract level, a class is a definition/blueprint that specifies what its instances should contain and how they behave. An object is an instance of the class where every object has its state, while behaviour comes from the class definition.As we look a little deeper, every object derives...
read more

At the most abstract level, a class is a definition/blueprint that specifies what its instances should contain and how they behave. An object is an instance of the class where every object has its state, while behaviour comes from the class definition.
As we look a little deeper, every object derives its state and behaviour from the class definition hierarchy (a.k.a inheritance). One can visualize it as an onion where each layer/peel corresponds to a class in the hierarchy.

read less
Comments

M.sc (Comps) pursuing M.Tech

Class is a prototype for the data and functions you want to create.Object is created as a type of class. For eg car is a class where as honda and hyundai are objects. Without creating objects we cannot access the class directly.
Comments

View 16 more Answers

Related Questions

How to handle Circular dependency in Spring?
What I would like to do in this post is suggest 3 possible techniques for dealing with this problem. 1. Refactor your code This is probably the simplest and quickest way to fix this problem. Look at...
Saroj
What is IBM RAD(Rational Application Developer)?
RAD means Rational Application Developer for WebSphere Software accelerates the development and deployment of Java, Java EE, Web 2.0, mobile, OSGi, portal and service-oriented architecture (SOA) applications....
Ashish
why can't we create an object for abstract class? why wait,notify,notifyall methods were in object class but not in thread class?
Abstract class is having an abstract method. It is empty method, created for future requirements, therefore usage is not certain by specifying objects to it.
Jilani
What is the purpose of using throws keyword in java?
The throws statement is how you create an exception stack trace. There isn't much magic in java--it's not some underlying system mystery that creates an exception, it is simply a "Throw" statement, and...
Saritha
Write a programme to replace the string without using replace command? This is my string. ..... s is replaced by th output is Thith ith my thtring
/* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ package logic; ...
Mithun

Now ask question in any of the 1000+ Categories, and get Answers from Tutors and Trainers on UrbanPro.com

Ask a Question

Related Lessons

Overview on Auto IT and use in selenium webdriver
AutoIt v3 is a freeware BASIC-like scripting languages designed for automating the windows GUI and general scripting. It used a combination of simulated keystrokes, mouse movements and window/control manipulation...
S

How can everyone prepare to clear any Java interview?
Java interview your java should be much strong then J2EE. core java and Advance java is the basic foundation for Interview. Some of the topic about which you should know before going for a java interview...

Java Interview Questions & Answers
Java Interview Questions have been designed especially to get you acquainted with the nature of questions you may encounter during your interview for the subject of Java Programming Language. As per my...

ClassNotFoundException vs NoClassDefFoundError
ClassNotFoundException NoClassDefFoundError It is an exception and happens due to programmer’s mistake and can be recovered by updating the code. Thrown when an application tries...

Programing Languages Learning Tricks
You want to learn that new language or library or framework as soon as possible, right? That’s understandable. Fortunately, there are a handful of tips that can help you to better retain all of that...

Harshal G.

0 0
0

Recommended Articles

Java is the most famous programming language till date. 20 years is a big time for any programming language to survive and gain strength. Java has been proved to be one of the most reliable programming languages for networked computers. source:techcentral.com Java was developed to pertain over the Internet. Over...

Read full article >

Before we start on the importance of learning JavaScript, let’s start with a short introduction on the topic. JavaScript is the most popular programming language in the world, precisely it is the language - for Computers, the Web, Servers, Smart Phone, Laptops, Mobiles, Tablets and more. And if you are a beginner or planning...

Read full article >

Java is the most commonly used popular programming language for the creation of web applications and platform today. Integrated Cloud Applications and Platform Services Oracle says, “Java developers worldwide has over 9 million and runs approximately 3 billion mobile phones”.  Right from its first implication as java 1.0...

Read full article >

In the domain of Information Technology, there is always a lot to learn and implement. However, some technologies have a relatively higher demand than the rest of the others. So here are some popular IT courses for the present and upcoming future: Cloud Computing Cloud Computing is a computing technique which is used...

Read full article >

Looking for Java Training Classes?

Learn from the Best Tutors on UrbanPro

Are you a Tutor or Training Institute?

Join UrbanPro Today to find students near you
X

Looking for Java Training Classes?

The best tutors for Java Training Classes are on UrbanPro

  • Select the best Tutor
  • Book & Attend a Free Demo
  • Pay and start Learning

Learn Java Training with the Best Tutors

The best Tutors for Java Training Classes are on UrbanPro

This website uses cookies

We use cookies to improve user experience. Choose what cookies you allow us to use. You can read more about our Cookie Policy in our Privacy Policy

Accept All
Decline All

UrbanPro.com is India's largest network of most trusted tutors and institutes. Over 55 lakh students rely on UrbanPro.com, to fulfill their learning requirements across 1,000+ categories. Using UrbanPro.com, parents, and students can compare multiple Tutors and Institutes and choose the one that best suits their requirements. More than 7.5 lakh verified Tutors and Institutes are helping millions of students every day and growing their tutoring business on UrbanPro.com. Whether you are looking for a tutor to learn mathematics, a German language trainer to brush up your German language skills or an institute to upgrade your IT skills, we have got the best selection of Tutors and Training Institutes for you. Read more