Chapter

Encapsulation & Objects

From ComputerScienceOne by Dr Chris Bourke

Concepts

  1. Why are high-level programming languages preferred over lower-level languages?

    "One reason we prefer to write programs in high-level programming languages is that we can use syntax that is closer to plain English. Though programming language syntax is a far cry from “natural” la

  2. What problems arise when modeling students with separate variables and arrays?

    "As a motivating example, suppose we were to write a program that involved organizing the enrollment of students into courses. To model a particular student, we would need a collection of variables, s

  3. How does encapsulation group and protect related data?

    "The solution is to encapsulate the pieces of data into one logical entity, sometimes referred to as an object . More formally, encapsulation is a mechanism by which pieces of data can be grouped toge

Encapsulation & Objects | ComputerScienceOne | Bifalgorithm | Bifalgorithm