Question

when writing code do we "use" the class or the object in our code? or should...

when writing code do we "use" the class or the object in our code? or should we simply view them both as the same thing for simplicity purposes?

Homework Answers

Answer #1

When writing code we always deals with the classes and objects. With out class we can't write anything because in Object Oriented Programming everything will be inside a particular class so you can't write single line of code outside the class

Coming to object . The actual code execution will be done using objects . you will access and allocate memory for required classes in coding by creating the objects for those classes in the Program

Note : If you like my answer please rate and help me it is very Imp for me

Know the answer?
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for?
Ask your own homework help question
Similar Questions
Should we teach our children facts about religions, just as we teach them reading, writing and...
Should we teach our children facts about religions, just as we teach them reading, writing and arithmetic?
The Facebook Class Now we’ll continue our project by writing a Facebook class that contains an...
The Facebook Class Now we’ll continue our project by writing a Facebook class that contains an ArrayList of Facebook user objects. The Facebook class should have methods to list all of the users (i.e. print out their usernames), add a user, delete a user, and get the password hint for a user. You will also need to create a driver program. The driver should create an instance of the Facebook class and display a menu containing five options: Menu 1....
When evaluating the results of the use of one of our one hypothesis tests we can...
When evaluating the results of the use of one of our one hypothesis tests we can use either the critical value method or the p-value method. While both methods will reach the same conclusion as to whether to reject or not reject our null hypothesis, most researchers prefer the p-value test. Why is this preferred over the critical value tests?
1.Assume we've instantiated a static object named xyz of some class. When will xyz go out...
1.Assume we've instantiated a static object named xyz of some class. When will xyz go out of scope? 2.Assume we've instantiated a dynamic object of some class. We used a pointer variable named p. Code a statement to free the memory occupied by abc.
Write an object oriented programming (JAVA) code. Create a class called Circle. The class has an...
Write an object oriented programming (JAVA) code. Create a class called Circle. The class has an attribute radius, which default to 1 by the first no-arg constructor. The class also has another constructor that instantiates the radius to a given value. Provide methods that calculate the circumference and the area of the circle (use Math.PI and Math.pow). Provide set and get methods. The set method should verify that radius is greater than or equal to 0.0 and less than 20.0,...
comment on Kant's revolutionary idea that we simply shouldn't use another person for our own purpose/treat...
comment on Kant's revolutionary idea that we simply shouldn't use another person for our own purpose/treat them as stepping stones/take advantage of them, because that is the same as disrespecting them. Imagine that being said at a time when the Declaration of Independence had just been written, but the abolition of slavery was still about 80 years in the future, and women's rights an additional 50 years! I'd like you to come up with a small, everyday example of someone...
Write the class definition for a class named Employee. The class should include data members for...
Write the class definition for a class named Employee. The class should include data members for an employee object's name and salary (the salary will be an integer). The class should contain two member functions: the constructor and a function that allows a program to assign values to the data members. Add two member functions to the employee class. One member function should allow any program using an employee object to view the contents of the salary data member. The...
TRUE / FALSE ? In the scope of our class, we use the t- distributions to...
TRUE / FALSE ? In the scope of our class, we use the t- distributions to constrict confidence intervals for 1. Difference in 2 population proportions 2. Population mean of paired differences (2 dependent samples) 3. Difference in 2 population means for independent samples
1). In the notes for our financial statements, our company says that we use the FIFO...
1). In the notes for our financial statements, our company says that we use the FIFO inventory cost flow assumptions; however, our accountant accidentally used the LIFO inventory cost flow assumption when creating out financial statements. If we were experiencing a period of increasing inventory costs, how would this impact our financial statement? 2). The value of inventory purchased on account was understated. For both questions, write if those understated or overstated or NE. :Assets Liabilities SE :Rev Exp NI...
When we do not need to include the confidentiality clause in our agreement?
When we do not need to include the confidentiality clause in our agreement?
ADVERTISEMENT
Need Online Homework Help?

Get Answers For Free
Most questions answered within 1 hours.

Ask a Question
ADVERTISEMENT