answersLogoWhite

0

Methods are functions defined for a class. Therefore they are accessible for all objects based on the class (depending on visibility; for example in Java: if they are public).

User Avatar

Wiki User

13y ago

What else can I help you with?

Related Questions

What are the the advantages of methods in java programing?

Methods are similar to functions or procedures in non-OOP languages, but methods are associated with a specific object (which, in turn, is based on a specific class); so the advantages of using methods are related to the advantages of OOP in general. Specifically, in the case of methods, you can use the same method name to do different things for different types of objects - for example, a show() method would work differently, depending on what object it works on.


What is planar projection?

It is one of several methods to draw a 3D object (like a globe) on a 2D surface (like a piece of paper).See related links.


Addition of methods into object at runtime?

Of course not.


What are the methods available in Object class?

equalshashcode


What are the primary methods of programming?

The two primary methods of programming are procedural and object-oriented.


Why you can not use this pointer in static functions?

Because this points to the current object, but static methods don't have a current object (actually this is definition of the static methods).


What is basic unit of encapsulation?

A Class. It encapsulates its variables and methods into it.


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...


Can instance methods replace class methods in programming?

No. never. An instance method cannot replace a class method because: Instance Methods - are normal methods that are linked to a class object instance Class Methods - are static methods that are not linked to any class object. These methods are not interchangeable and will create too many issues if we try to use one in place of the other.


Energy at a height is called what?

Energy related to the height of an object is gravitational potential energy.Energy related to the height of an object is gravitational potential energy.Energy related to the height of an object is gravitational potential energy.Energy related to the height of an object is gravitational potential energy.


What is a java object?

A java object is a collection of methods and properties defined in the Java programming language.


What is diffrent between object pointer and this pointer?

'this' is an object-pointer: it points to the current object (usable only in non-static methods).