C# Class Polymorphism.Mobile

Its an incomplete functional class. So, its riskful to use incomplete functionality Thats why compiler Restrict the developer to make the class abstract which contain any abstract method.
Mostrar archivo Open project: fahidnasir/DotNet-ShortCourse2015

Public Methods

Method Description
GetMobileSerialNumber ( ) : string
MakeCall ( string phoneNumber ) : bool

Same as the above method every method also make the Call. So, What is the reason not to make these methods concrete? Because every mobile have its own mechanism to dial the call.

Mobile ( ) : System
Mobile ( string serialNumber ) : System
SendSMS ( string phoneNumber, string smsText ) : bool

Same as the above method every method also make the Call. So, What is the reason not to make these methods concrete? Because every mobile have its own mechanism to send the sms.

Method Details

GetMobileSerialNumber() public method

public GetMobileSerialNumber ( ) : string
return string

MakeCall() public abstract method

Same as the above method every method also make the Call. So, What is the reason not to make these methods concrete? Because every mobile have its own mechanism to dial the call.
public abstract MakeCall ( string phoneNumber ) : bool
phoneNumber string
return bool

Mobile() public method

public Mobile ( ) : System
return System

Mobile() public method

public Mobile ( string serialNumber ) : System
serialNumber string
return System

SendSMS() public abstract method

Same as the above method every method also make the Call. So, What is the reason not to make these methods concrete? Because every mobile have its own mechanism to send the sms.
public abstract SendSMS ( string phoneNumber, string smsText ) : bool
phoneNumber string
smsText string
return bool