Write short notes on inheritance as it relates to object


1. Write a "People" Class in Ruby which contains the following attributes

a. Name
b. Age
c. Address (including Phone Number)
d. Employer Name

The class should be declared to accept all the above attributes when instantiated. In addition the class should have the following methods

a. Set Name
b. Set Age
c. Set Address
d. Set Employer Name
e. Display all details for an individual

2. Develop a Palindrome (Examples of palindromes: radar, civic etc. ) class which takes a string for an input string and tests if it is a palindrome or not. The class should be able display appropriate messages in either case

3. Write short notes on Inheritance as it relates to Object Oriented Programming. Your answer should cover the following points

a. What it is?
b. Why is it useful?
c. How can set inheritance attributes for a class in Ruby?

Request for Solution File

Ask an Expert for Answer!!
Management Information Sys: Write short notes on inheritance as it relates to object
Reference No:- TGS01001930

Expected delivery within 24 Hours