Computer Science, asked by gmudreac, 9 months ago

What is the term meaning a Java object that has attributes and methods? literal class string interface

Answers

Answered by hoangmustang
0

Answer:

As i remember, object has one method or multi methods. Object is a blueprint of the class.

EXAMPLE:

public class DemoObject{

public static void thisIsMethod(){

//do something

}public static void method(){

//do something

}

}public static void main(String[]args){

//we can call thisIsMethod() or method()

}

Explanation:

So you can see an object can has one or multi methods and attributes mean public or private, the upper methods are public.

Similar questions