Computer Science, asked by sambhavchaturvedi, 7 months ago

b) What are two types of methods that we can write in class?​

Answers

Answered by Anonymous
12

Explanation:

Java - types of methods

Static methods: A static method is a method that can be called and executed without creating an object. ...

Instance methods: These methods act upon the instance variables of a class. ...

Factory methods: A factory method is a method that returns an object to the class to which it belongs.

Feb 3, 2012

Similar questions