answersLogoWhite

0


Want this question answered?

Be notified when an answer is posted

Add your answer:

Earn +20 pts
Q: How do you declare and use methods?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

Can you declare abstract methods in normal classes in c?

yes


Can you write multiple Mains in C-Sharp programming?

No. There can only be one main method, however you can declare new methods, and call them from the main method. Or you can use multi-threading, to simulate having multiple main methods.


In DevCplusplus Allegro Id like to use a for loop so you can draw multiple primitives without having to declare each one could anyone tell you how to do that?

You only have to declare objects if you intend to store them. If you simply want to draw objects without storing them, then use static drawing methods in your loop.


Can you use declare in a sentence without use ed?

yes! example: Do you have the power to declare a war on another country?


Can you declare a method within a method in c or c plus plus?

C: there are no methods in C. C++: no.


What is the relationship between inheritance methods and the keyword final?

They are inversely related. That is: If you declare a method as final you cannot overridden in the child class If you declare a class as final you cannot inherit it in any other class.


What methods did the mabo use to protest?

What methods did Eddie Mabo use to protest?


How do you create a concrete method inside abstract class?

The same way you create a concrete method in a concrete class. When a class is abstract, it can contain abstract methods. That doesn't mean that all methods must be abstract. Hope this helps.


Do methods reside within an object?

ya methods resides within an object.. because if we declare a method static it can be called by object genration.. and static variables reside in heap known as permanent genration...


Why all methods should be written in classes in java?

A Java class is expected to have all functions defined. The purpose of defining the methods is to decide on its expected functionality and behavior. Only in case of Interfaces we declare methods but leave the method definitions to the implementing classes.


What methods should I use to look for phone?

What methods should I use to look for phone?


How do you declare gotoxy?

You don't declare library functions. Simply include conio.h. For details use the built-in help.