Yucca Nel wrote:My file descriptor did not give me an offset and I need to read all data schema to get to where the records start. By hardcoding my offset I could be taking a guess, but a method that reads all data and then varifies all the information like my offset provide easier to understand code for junior programmers.
The only problem with not extending Sun's interface and having your Data class implement the interfaces separately, like in:
public class Data implements YourInterface, SunsInterface
public class Data implements YourInterface
is that you won't be able to do this:
YourInterface data = new Data();
Bottom line: you can create your interface and extend Sun's interface without any problem. I did it and didn't fail!
Yucca Nel wrote:
If MyInterface has all the methods of SunInterface declared exactly the same and if data...
Then all it means is that with the one interface you can instantiate a different type of Data? This way Data has extra operations and still complies with MUST
WHAT is your favorite color? Blue, no yellow, ahhhhhhh! Tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koophttps://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton