in java, class isn't capitalized. just thought i'd point that out.
|
Please remove this, since the ignorance in here in trying to teach people how OO works internally, and people think that languages such as java, c++ are not actually just built upon C and let the compiler handle the messy code.
in java, class isn't capitalized. just thought i'd point that out.
instead of writing an abominable mess of c, why not use c++ or even objective c
1 - C is better than C++ in terms of faster running time, gives you more access into lower level functions into the computer. (Is like saying why learning ASM if we got C, a ASM can run at the lowest machine level, and a good ASM code runs 10x faster than a good C code since it works at a lower level thus it does not need to do what C compilers do to make the code into ASM, same goes for C++, Java, C# they have to many process to be machine code making their execution slower than lower level languages).
2 - Objective C is a platform dependant language, while using a multiplatform compiler for C (gcc) can run in windows, linux, mac with just a few changes.
3 - This is to teach how languages like Java, C#, C++ and all the C derivated languages are written and work at a lower level.
Every person has their favorite language mine is C, this is just a guide to help people who are new to OO or would like to understand how it was built, and works internally (in an easy, compact way to understand). Is not my fault you're close minded and think that higher levels came out of nowhere and does not have a lower level working behind. Is like saying Java does not handles pointers, at a programmer level sure, it does not, but internally it does.
I dislike this "tutorial" if you can even call it that. Emulating object oriented programming in C is a terrible idea in several ways which I can list out if you want me to do so. Where is your evidence that C is "significantly faster" than C++? In most situations the difference in performance should be trivial, and you shouldn't be worrying about it anyway. If you want PRACTICAL object oriented programming, don't use C!
If OOP is your desire then Java is your man. Java is based on OOP and should be used as such.
Lesson: Object-Oriented Programming Concepts (The Java™ Tutorials > Learning the Java Language)
C++ is just as good, but C is not a OOP language.
BufferedReader in C? equalsIgnoreCase method? dude you're mixing Java, C & C++... you can't have methods inside structs in C...
« Previous Thread | Next Thread » |
Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |