CSE 278 Lecture Notes - Lecture 21: Object-Oriented Programming, New Class

17 views2 pages

Document Summary

Cse 278 - lecture - inheritance and object oriented programming. Languages like pascal and c facilitated development of structured programs. Need for ability to extend and reuse software became obvious which led to object-oriented programming. C++ has become most widespread object oriented language in the world. Data and basic operations for processing this data are encapsulated into a single entity. This is made possible with programming elements like libraries, packages, classes, and units/modules. The unit of encapsulation in oop is the class. Client code must only use public operations, so that implementation may be changed without affecting client code. A class can be derived from another class. There is no need to change or add code since the new class can use them. Can use classes that are base classes and can be derived to simply represent multiple things (person represents student and faculty). Public: may be accessed by any function. Private: only accessed by member functions and friends.

Get access

Grade+
$40 USD/m
Billed monthly
Grade+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
10 Verified Answers
Class+
$30 USD/m
Billed monthly
Class+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
7 Verified Answers

Related Documents