[go: up one dir, main page]

0% found this document useful (0 votes)
18 views3 pages

Module 4 PF201A - Edited

Download as doc, pdf, or txt
Download as doc, pdf, or txt
Download as doc, pdf, or txt
You are on page 1/ 3

NOTRE DAME RVM COLLEGE OF COTABATO

Formerly: Notre Dame of Cotabato for Girls Department (1904)


#74 Sinsuat Avenue, Cotabato City
Academic Year 2020-2021

BACHELOR OF SCIENCE IN INFORMATION TECHNOLOGY

PF201A
OBJECT ORIENTED PROGRAMMING 1

Topic: CREATING CLASSES


MODULE 4 for WEEK 4
September 14 – 18, 2020

Print COMPLETE NAME

PART 1: PRELIMINARIES

OPENING PRAYER
Almighty Father, thank You for this fourth week of our Distant Learning Modular Lesson. Thank
You for the continued good health and safety and for granting us this opportunity to study with our
classmates. Continue to bless our Professors, our families, our School community and our country and
grant our land continued healing. Amen.
Venerable Ignacia del Espiritu Santo, Pray for us.

INTRODUCTION
In this module, you looked at how the .NET Framework was developed and how programs execute
under the framework. The previous modules introduced you to the Visual Studio IDE, and you gained
some familiarity with working in it. You are now ready to start coding! This chapter is the first of a series
that will introduce you to how classes are created and used in C#. It covers the basics of creating and
using classes. You will create classes, add attributes and methods, and instantiate object instances of the
classes in client code.

PART 2: LEARNING OUTCOMES

At the end of the module, you are expected to:

LO1: explain how objects used in OOP depend on class definition files and the purpose of class
constructors through program making;
LO2: discuss the process of overloading class constructors and methods and the process of creating and
testing class definition files with Visual Studio; and
LO3: value the important role that encapsulation plays in OOP and the use of instances of classes in
client code.

PART 3: LEARNING CONTENT

SUB TOPICS:
a. Introducing Objects and Classes (see Appendix A)
b. Defining Classes (see Appendix B)
c. Using Constructors (see Appendix C)
d. Overloading Methods (see Appendix D)

PF201A – Module 4 – BSIT – NDRVMCC – Term 1, First Semester AY 2020-2021 – A.J. BASTILLADA Page 1 of 3
Note:
1. The APPENDICES of the given topics above can be accessed through classroom.google.com
2. Just input the class code:

hsnvlfj
3. View the uploaded documents for any issues and questions.

PART 4: TEACHING-LEARNING ACTIVITIES (TLAs)

TLA 1: Program Making


INSTRUCTION: Follow the requirement in each part of the activity. You will be scored according to the
given level of difficulty. You will then send your output to my account through online.

A. Area of Rectangle (3 pts)

Create a program that will calculate the area of a rectangle:


Given:
W = 6.4 inch
H = 5.3 inch
A=?

B. Add two numbers (2 pts)

Create a program that will add any 2 given numbers.


Given:
1st Number: 9.6
2nd Number: 7.2
Sum: ?

C. MDAS (5 pts)

Build a program that will calculate the product, quotient, sum, and difference of any 2 given
numbers.
Given:
1st Number: 12.3
2nd Number: 11.6
Product: ?
Quotient: ?
Sum: ?
Difference: ?

PART 5: LEARNING ASSESSMENT

INSTRUCTION: For the learning assessments of this module, an online quiz will be given using Google
Form. Join the classroom.google.com and input the class code:

hsnvlfj

PART 6: LEARNING INTEGRATION


PF201A – Module 4 – BSIT – NDRVMCC – Term 1, First Semester AY 2020-2021 – A.J. BASTILLADA Page 2 of 3
CORE-RELATED VALUES
According to Jaggi Vasudev, “If you want to be successful, don’t seek success – seek competence,
empowerment; do nothing short of the best that you can do.” As you pursue your objectives this week,
remember the core value of Excellence supported with competence so that you will be successful in your
tasks.

PART 7: LEARNING SUMMARY

This module gave you a firm foundation in creating and using classes in C# code. Now that you are
comfortable constructing and using classes, you are ready to look at implementing some of the more
advanced features of OOP. In Chapter 7, you will concentrate on how inheritance and polymorphism are
implemented in C# code. As an object-oriented programmer, it is important for you to become familiar
with these concepts and learn how to implement them in your programs.

CLOSING PRAYER
Dear God, thank You so much for blessing our learning this week. Continue to bless, inspire and
keep us in Your loving care and protection and lead us to move forward with the grace of strength,
courage, and confidence. We thank You for the continued blessings of healing, good health and
protection. Amen.
Venerable Ignacia del Espiritu Santo. Pray for us.
Bless us, O Heavenly Father and give us the grace to seek and do Your will in all things.

REFERENCE/S:

1. Dan Clark(2019), Beginning C# Object Oriented Programming, APRESS


2. https://www.tutorialspoint.com/csharp/index.htm

Designed by:

ARNOLD JOHN B. BASTILLADA


Subject Teacher

PF201A – Module 4 – BSIT – NDRVMCC – Term 1, First Semester AY 2020-2021 – A.J. BASTILLADA Page 3 of 3

You might also like