0 like 0 dislike
52 views
in Computer Science by (1.0m points)
What is object bar?

1 Answer

0 like 0 dislike
by (1.0m points)
An object is an instance of a class. To understand what is meant by an instance here is a small example. if we have a class Person as class Person{ public String name; public int age; public float salary; public Person(String name, int age, float salary){ this.name=name; this.age=age; this.salary= salary; } public static void main(String args[]){ Person personObject = new Person("Abhay",45,50000); } } In the main function we have created an object of type Person. we can now use this object to manipulate the contents of the object such as the name,age and salary of the person. Other methods of the class have not been included.

An object, traditionally defined, is either a direct object or an indirect object.

An object, in some usages, is any grammatical relation other than subject.
Welcome to Free Homework Help, where you can ask questions and receive answers from other members of the community. Anybody can ask a question. Anybody can answer. The best answers are voted up and rise to the top. Join them; it only takes a minute: School, College, University, Academy Free Homework Help

19.4k questions

18.3k answers

8.7k comments

3.2k users

Free Hit Counters
...