CUST 1500H Lecture 2: WEEK 1 LEC NOTES part 2

33 views2 pages

Document Summary

Abstract class (you cannot create an instance of an abstract class because its behavior is not fully defined) Generic* (a class that can take on different types) You k(cid:374)o(cid:449) so(cid:373)ethi(cid:374)g is a refere(cid:374)ce type (cid:449)he(cid:374) you ha(cid:448)e to use the (cid:449)ord (cid:862)(cid:374)e(cid:449)(cid:863) Modifiers: public anybody has access to the data members, private only those within the class have access, protected (inheritance) Internal protected (wont see this much in this course) B is the parent, a is the child. The reason for inheritance is to reuse things( classes, methods) The child is more specialized than the parent. You can inherit from only 1 class in c# You can implement as many interfaces as you want. You have to implement the method of an interface. ***another word for dynamic in computer science is runtime. One of the data member of of class employee has a person as a data type.

Get access

Grade+20% off
$8 USD/m$10 USD/m
Billed $96 USD annually
Grade+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
40 Verified Answers
Class+
$8 USD/m
Billed $96 USD annually
Class+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
30 Verified Answers

Related Documents

Related Questions