Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

#2: Classes are created to define objects such that objects are instantiated fro

ID: 3704897 • Letter: #

Question

#2: Classes are created to define objects such that objects are instantiated from the class definition. Does it make any sense to create a class from which no object can be instantiated? If so, what would this special class be called in Java? Does it make any sense to #3: Classes typically consist of instance variables and methods. create classes with no variables and no methods? Give an example. #4: Describe polymorphic behavior in programming as compared to p science or nature. #5 When would you use the modifier final and why? #6 The following code snippet (code-6 1 txt) from the class student has two methods with the same name: reset. Is this an example of overriding, overloading, or an error? code 6_1.txt #7 Write one line of code that will call the first reset method in #6 above. #8 Write one line of code that will call the second reset method in #6 above.

Explanation / Answer

Hi Dear,

As per chegg guideline, please post one question per post.

I have answere Q2.

Yes, It make sense to create a class from which we can not create Object. Asbstract Classes are the example of this.

We can not create object of abstract class but abstract classes has many advantage in object oriented programming.

Abstract classes are used in Inheritance

Example:

public abstract class A {

// variables

// methods

}

Please DONT forgot to rate my answer. We are working hard for you Guys!!