# If balance is private, what is the upper bound on the number of lines of code which must be examined to make the change to the Account class? \

What is the "upper bound on the number of lines of code" referring to?

Recommended Answers

All 2 Replies

# If balance is private, what is the upper bound on the number of lines of code which must be examined to make the change to the Account class? \

What is the "upper bound on the number of lines of code" referring to?

maybe it's just because it's still early but ... what are you talking about??
do remember, we do not know the Account class you are referring to, we do not know the rest of the code you're working on. we do not know the changes that have to be made to Account, and we know nothing of the code that should make those changes.

further more, could you please specify what you mean by 'the upper bound on the number of lines of code'?

Yeah, it's a little hard to tell without seeing more, but I like talking out of my ass so...

Saying the "upper bound" is just a fancy way of saying "how many lines of code". But in a more general way than that.

Like if you've had an algorithms class, you might be asked what's the upper bound on how long a sorting agorithm will take.

The prof. doesn't want to know the *actual* running time, but how it changes with the number of inputs.

In this case, the answer is going to be something like: all the lines in the method, all the lines in the class, all the lines in package. or something like that.

Hope that helps.
/B

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.