Object Oriented Programming Basics

MeaningfulJuniper avatar
MeaningfulJuniper
·
·
Download

Start Quiz

Study Flashcards

18 Questions

What is the main aim of Object Oriented Programming (OOP)?

To bind together data and functions so that only specific functions can access the data

What are the three main items in Object Oriented Programming (OOP)?

Classes, Objects, Message

What does encapsulation refer to in Object Oriented Programming?

Binding together data and functions to restrict access

What is a feature of Distributed Computing systems?

Data storage and processing distributed across multiple devices

Which protocol is specifically used by Microsoft for Distributed Computing?

DCOM (Distributed Component Object Model)

What differentiates Object Oriented Programming from other programming paradigms?

Binding data and functions together for restricted access

Which technology was once compromised by the Blaster worm?

DCOM

Which protocol is a replacement for DCOM as mentioned in the text?

SOAP

Which architecture grants communication between applications irrespective of storage location?

CORBA architecture

Which technology creates a client/server relationship between objects based on the ORB concept?

CORBA

Which technology abstracts both the web server and the database, serving a web application via a browser?

EJB

Which concept places security requirements on the server side?

Encapsulation

Which type of language is generally interpreted without compiling into machine instructions?

Interpreted language

What is the main advantage of interpreted languages over compiled languages?

Platform independence

Which program translates high-level source code into machine language?

Compiler

In which type of programming language is source code executed line by line during runtime?

Interpreted language

What does an assembler primarily do?

Translates assembly language to machine language

Which type of program translates a program statement-by-statement rather than all at once?

Interpreter

Study Notes

Object Oriented Programming (OOP)

  • The main aim of OOP is to organize and structure code in a way that resembles real-world objects and systems.
  • The three main items in OOP are classes, objects, and inheritance.

Key Concepts

  • Encapsulation in OOP refers to the bundling of data and methods that operate on that data within a single unit, making it harder for other parts of the program to access or modify the data directly.
  • Distributed Computing systems have a feature of allowing multiple computers to work together to achieve a common goal.

Distributed Computing

  • Microsoft specifically uses the DCOM (Distributed Component Object Model) protocol for Distributed Computing.
  • The replacement for DCOM is the .NET Remoting protocol.

Architecture and Technologies

  • The technology that grants communication between applications irrespective of storage location is Service-Oriented Architecture (SOA).
  • The technology that creates a client/server relationship between objects based on the ORB (Object Request Broker) concept is CORBA (Common Object Request Broker Architecture).
  • The technology that abstracts both the web server and the database, serving a web application via a browser is a Three-Tier Architecture.
  • The concept that places security requirements on the server side is Three-Tier Architecture.

Programming Languages

  • Interpreted languages are generally interpreted without compiling into machine instructions.
  • The main advantage of interpreted languages over compiled languages is that they can be executed line by line without the need for a separate compilation step.
  • A compiler is a program that translates high-level source code into machine language.
  • In an interpreted language, source code is executed line by line during runtime.
  • An assembler primarily translates assembly language into machine language.
  • An interpreter is a type of program that translates a program statement-by-statement rather than all at once.

Test your knowledge on Object Oriented Programming concepts like classes, objects, encapsulation, and inheritance. Understand the main aim of OOP in binding data and functions, and how messages are used to request services between objects.

Make Your Own Quizzes and Flashcards

Convert your notes into interactive study material.

Get started for free

More Quizzes Like This

Object Oriented Programming Principles Quiz
10 questions
Laravel Object-Oriented Programming (OOP) Concepts Quiz
10 questions
Use Quizgecko on...
Browser
Browser