What is a local, member and a class variable? Ans. Variables declared within a method are 'local' variables. Variables declared within the class i.e not within any methods are 'member' variables (global variables). Variables declared within the class i.e not within any methods and are defined as 'static' are class variables. - Study24x7
Social learning Network
19 Oct 2023 11:45 AM study24x7 study24x7

What is a local, member and a class variable? Ans. Variables declared within a method are "local" variables. Variables declared within the class i.e not within any methods are "member" variables (global variables). Variables declared within the class i.e not within any methods...

See more

study24x7
Write a comment
Related Questions
500+   more Questions to answer
Most Related Articles