0% found this document useful (0 votes)
17 views1 page

CC 103 PrelimProject

Uploaded by

merryfil.adolfo
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
17 views1 page

CC 103 PrelimProject

Uploaded by

merryfil.adolfo
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 1

CC 103 – Intermediate Programming

Lesson 2: Objects and Classes


Prelim Project

Activity: Try Your Skills

1. Create a class name Student with five attributes and 3 methods. Write an appropriate
code implementation for each method that will print information of students.

2. Write a class named Dog that will contain two instance String variables and one int
attribute for name, color, and age which are local to method adoptDog. The adoptDog
method is intended to be accessed outside the class.

You might also like