Question: (6) What is the difference between an ATTRIBUTE and a VARIABLE? (true or false) Attributes are a kind of variable. Variables are a kind

(6) What is the difference between an ATTRIBUTE and a VARIABLE? (true or false) Attributes are a kind of variable. Variables are a kind of attribute. Attributes have private scope, but variables are in scope everywhere. Every attribute in a class is always passed to every method in a class, but variables are only passed into methods when listed as parameters. (7) When you look at a class XYZ, how can you tell which method is the constructor? (8) What is the return type of a constructor?
Step by Step Solution
3.46 Rating (166 Votes )
There are 3 Steps involved in it
6ans Attributes are a kind of variable it was true A variab... View full answer
Get step-by-step solutions from verified subject matter experts
