• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

Some basic Java Questions

JC0133

Senior member
1st is an OOP inheritance question.

If I have

class A {
//some public methods
}

class B extends A {
//some public methods
}

class C extends B{
}

Can Class C access public methods of Class A, even though it extends from B not A??

2nd Question if I am using JAVA to open a delimited test file, and I am parsing the contexts by some text delimiter, my question is what does delimiter mean??
 
Class C can access any public or protected field or method in any of its base classes. B is the base class of C. However, the base classes of B are also base classes of C.

A delimiter is a character used to separate fields. For example in a comma separated value (CSV) file, each line in the file is a series of values separated by commas.

Ps, when you want to put code into your post, put it inside of [*code][/code*] (remove the *'s) tags so that it retains its formatting and is easier to read.
 
I'd just like to say...that if anyone was to ask about any homework problems...anywhere in this forum...that they should make it clear that they're asking about homework problems. Yup, I think that's about all I have to say. ()🙂
 
I'd just like to say...that if anyone was to ask about any homework problems...anywhere in this forum...that they should make it clear that they're asking about homework problems. Yup, I think that's about all I have to say. ()🙂

Or at least first learn to how to use google. Being able to use the internet to find solutions for programming problems is IMHO a very important skill set.
 
Or at least first learn to how to use google. Being able to use the internet to find solutions for programming problems is IMHO a very important skill set.

I cant begin to imagine how tough it would have been in the 90's... no stackoverflow... no reddit, no at programming subforum, no online docs that can be searched with google.

Sat with a huge book bigger than the bible that says "JAVA" on the front D:
 
I cant begin to imagine how tough it would have been in the 90's... no stackoverflow... no reddit, no at programming subforum, no online docs that can be searched with google.

Sat with a huge book bigger than the bible that says "JAVA" on the front D:

I think Java always had online documentation. Searching could be a problem, but that's why you'd download the whole thing and use Windows' file search function.
 
Back
Top