You are on page 1of 2

using System;

using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApplication4
{
public class Mammal
{
private double dob;
public void set_date_of_birth(double dob)
{
Console.WriteLine("Enter the date");
dob = Convert.ToDouble(Console.ReadLine());
}
public double get_age_as_days()
{
double b;
Console.WriteLine("Enter Age");
b = Convert.ToDouble(Console.ReadLine());
return 0;
}
}
public class Person : Mammal
{
private string first_name;
public void set_first_name(string first_name)
{
Console.WriteLine("Enter First Name");
first_name = Convert.ToString(Console.ReadLine());
}
public string get_first_name()
{
string a;
Console.WriteLine(" get First Name");
a = Convert.ToString(Console.ReadLine());
Blood_Group bg = new Blood_Group();
bg.get_blood_group();
Address ad = new Address();
ad.get_post_code();
return null;
}

}
public class Blood_Group
{
private string blood_group;
public string get_blood_group()
{
Console.WriteLine("Enter blood group");
blood_group = Convert.ToString(Console.ReadLine());
return null;
}
}
public class Address
{
private string post_code;
public string get_post_code()
{
Console.WriteLine("Enter postal Code");
post_code = Convert.ToString(Console.ReadLine());
return null;
}
}
public class Man : Person
{
private Boolean Watching_football;
public void watch_football()
{
Console.WriteLine("watching football");
}
public Boolean is_watch_football()
{
Console.WriteLine("Yes watching football");
return true;

}
}
public class Woman : Person
{
private Boolean wearing_make_up;
public void put_make_up()
{
Console.WriteLine("Put the Make up");
}
public Boolean is_make_up_wearing()
{
Console.WriteLine("Yes wearing make up");
return true;

}
}
public class Program
{
static void Main(string[] args)
{
Mammal m = new Mammal();
double dob = 67576;
m.set_date_of_birth(dob);
Man mn = new Man();
mn.get_age_as_days();
string first_name = "abcd";
mn.set_first_name(first_name);
mn.get_first_name();
mn.is_watch_football();
mn.watch_football();
Woman w = new Woman();
w.is_make_up_wearing();
w.put_make_up();

Console.ReadKey();

}
}
}

You might also like