CSCI 1120 Lecture Notes - Lecture 33: Abstract And Concrete, Pseudocode
CSCI 1120 verified notes
33/39View all
Document Summary
Why looking at different programming languages is useful. So we do not confuse syntax for two languages. So we learn the underlying logic of programming. Different languages are using the same semantics with slightly different syntax. So we can look at different parts of different languages, such as objects. It makes sense to regard related data as attributes to a conceptual object. Object oriented programming languages let you extend objects. Consider we are making an rpg, where we would like to make two characters. It is easily to make two individual characters each with a name, hp, items, inventory or whatever you would like. But consider if you would like n amount of characters. It is not good to copy and paste more code means more mistakes and more tedious testing. We can declare every property as an array or a list, or any kind of linear container.