计算机科学分类programming languages编程语言lec19slides.pptxVIP

  • 1
  • 0
  • 约小于1千字
  • 约 35页
  • 2022-04-23 发布于北京
  • 举报

计算机科学分类programming languages编程语言lec19slides.pptx

CSE341: Programming Languages Lecture 19 Introduction to Ruby and OOP;Ruby logistics;Ruby: Our focus;Ruby: Not our focus;Where Ruby fits;A note on the homework;Getting started;The rules of class-based OOP;Defining classes and methods;Creating and using an object;Variables;Self;Objects have state;Aliasing;Initialization;Class variables;Class constants and methods;Who can access what;Object state is private;Conventions and sugar;Why private object state;Method visibility;Method visibilities;One detail;Now (see the code);Pure OOP;Some examples;All code is methods;Reflection and exploratory progr

文档评论(0)

1亿VIP精品文档

相关文档