answersLogoWhite

0

An object is a instance (an actual sample) of a class; For example, if we have a class Car like this:

public class Car{

int horsepower;

String color;

public Car(int hp, int color){

this.horsepower = hp;

this.color = color;

}

}

Then an actual Car is create when we instantiate a Car with the 'new' operator:

Car ferrari = new Car(660, "red"); // A car object

Car beetle = new Car(110, "pink"); // An other car object

User Avatar

Wiki User

15y ago

What else can I help you with?

Related Questions

What is a java object?

A java object is a collection of methods and properties defined in the Java programming language.


Which type of language is java?

Java is truly object oriented programming language


What has the author Jaime Nino written?

Jaime Nino has written: 'Introduction to Programming and OOD Java' 'An introduction to programming and object-oriented design using JAVA' -- subject(s): Java (Computer program language), Object-oriented programming (Computer science) 'Introduction to Programming and OOD Using Java'


What language is completely object oriented c plus plus or java?

Java is the complete object oriented Programming Language as every thing in java is an object,


What is the difference between java and object oriented programming?

java is a programming language/platform that embodies object oriented programming concepts. The question of what is the difference is like asking what is the difference between cars and a Volvo.


What are the features in java that makes it similar to C programming?

Java is not similar to C. Java is, however, similar to C++. Both C++ and Java are object orientated programming languages (OOPL's).


Is Java a pure object oriented programming language?

Yes.


What are the examples of object oriented programming environments?

Java, C++


Why is Java called an Object Oriented Programming Language?

Actually java is not purely object oriented.because we can use the primitive data types in Java.In java all those things or considered as classes and objects .So we are called java is an object oriented programming language...


What is the meaning of a method in Java programming?

a method is a variable


Is java example of a procedural programming language?

No.Its purely object oriented programming language


How oops concept is implemented in java?

OOP stands for Object Oriented Programming. Everything in Java is an Object. Any class you create extends the Object class by default thereby making everything in Java an object. Moreover, you can use features like Inheritance, Polymorphism, Encapsulation etc which are OOP concepts thereby making Java an Object Oriented Programming Language