-
Junior Member
I would like to declare the log variable for class B
There is a class A having a static variable static Logger log. In class A an object of class B is created and method of class B is called.
Class B = new Class B();
B.getConn(log);
now in class B when we declare the log variable do we need to declare it static,or if we do not declare it ststic still will it work??
I would like to declare the log variable for class B so that all the methods can use the same logger...
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules