0 like 0 dislike
45 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.

Related questions

0 like 0 dislike
1 answer 55 views
asked Nov 9, 2018 in Computer Science by danish (1.0m points)
0 like 0 dislike
1 answer 55 views
asked Apr 4, 2019 in Computer Science by danish (1.0m points)
0 like 0 dislike
1 answer 53 views
asked Apr 2, 2019 in Computer Science by danish (1.0m points)
0 like 0 dislike
1 answer 89 views
0 like 0 dislike
1 answer 52 views
asked Feb 11, 2019 in Computer Science by danish (1.0m points)
0 like 0 dislike
1 answer 87 views
asked Jan 7, 2019 in Computer Science by danish (1.0m points)
0 like 0 dislike
1 answer 37 views
asked Apr 2, 2019 in Computer Science by danish (1.0m points)
0 like 0 dislike
1 answer 48 views
asked Feb 13, 2019 in Computer Science by danish (1.0m points)
0 like 0 dislike
1 answer 24 views
asked Feb 12, 2019 in Computer Science by danish (1.0m points)
0 like 0 dislike
1 answer 34 views
asked Feb 13, 2019 in Computer Science by danish (1.0m points)
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.3k users

Free Hit Counters
...