answersLogoWhite

0

What else can I help you with?

Continue Learning about Engineering

Why might you want to define an abstract class?

You would use an abstract class when you want a number of classes to have a similar functionality/methods list. The abstract class will have only method declarations and no definitions. So any class that extends this abstract class would have to provide the method definitions. This way you can ensure that all these classes will have a similar set of methods/features. This type of usage of an abstract class is similar to interfaces.


Which is true about an anonymous inner class?

A lot of things are true about them. What is it that you want to know?


Which of the transistor configuration is prefer?

It depends on what you want to do with the transistor. Class A, common emitter, is used for voltage amplification. Class C, common collector, is used for current amplification. There are other classes and configurations but, again, it depends on what you want to do.


What is function overriding in Java?

Method overriding is similar to method overloading, with a small difference. In overriding, a method in a parent class is overridden in the child class. The method in the child class will have the same signature as that of the parent class. Since the method in the child class has the same signature & name as the method of its parent class, it is termed as overriding. In situations where you may have to explicitly call the parent class method you can use the "super" keyword and for explicitly calling the current objects method you can use the "this" keyword.


Why do you need a constructor as a class member?

A constructor is not a mandatory member that we need to code specifically for a class. While creating a class, even if we miss out coding the constructor, Java would create a default constructor all by itself. The constructor is usually the place where we initialize things that are required by the class. Hence it is a good practice to code the constructor for our class. Tip: If you do not want anyone to instantiate your class, you can declare the constructor as private. In that way no other class can instantiate your class.

Related Questions

You want to see marksheet of 2005 12th class?

You want to see marksheet of 2005 12th class?


Does a babysitting class count as a CPR class?

No, babysitting class will not count as a CPR class; you will need to take a CPR class if you want that certification.


Is drama class or cooking class more valuable in middle school?

It depends on the career you want to go into. If you want to be a cook, choose cooking class. If you want to be an actor/actress, choose drama class. And if you don't want to go into either, just choose whichever one interests you or flip a coin.


Does Obama want to lower middle class families tax?

Yes, he does want to lower middle class families tax.


What did the tickets cost for first class and second class an third class?

i don't know that is what i want to know!!!!!!!!!!!!!!!!!!!


What do you do if a boy in your class likes you?

What do you want to do?


When should a class be declared abstract?

In two situations:You want the child class to provide certain behavior while making sure that certain other behavior is as you want it (Through the concrete methods that you create)You dont want any other class to be able to instantiate your class


8th class maths question paper 2009?

i want question & answer in 8th class. then i want to give test online paper


Is you want to take a class with the best teacher a correct sentence?

If it is " You want to take a class with the best teacher?" then yes. This would be used when in disbelief. If you are just asking it, then you would usually say, " Do you want to take a class with the best teacher?"


How can one drived a class features into another class?

By using Inheritance If i want to derive the features of Class A into B then i will do Class a extends B {}


Want to know 12th class CBSE result for the year 2002?

want to know the cbse result of class 12 th 2002


Your favorite class is music in spanish?

if want to say my favorite class is music=Mi clase favorita es musica If you want to say your favorite class=Tu clase favorita es musica