okay, i get it! thanks for your time guys.. i'm sorry if i'd vexatious you.. i'm really really sorry...
Problem Solved!
Type: Posts; User: mexists
okay, i get it! thanks for your time guys.. i'm sorry if i'd vexatious you.. i'm really really sorry...
Problem Solved!
public class main{
public static void main (String[] args) {
CSquare<Integer> s = new CSquare<Integer>(5,5);
System.out.println (s.area());
}
}
class myShape<T>{
protected T height, width;
}
class CSquare<T> extends myShape<T>
{
public CSquare(T height, T width){
this.height = height;
this.width = width;
}
:confused:
#include "stdafx.h"
#include<iostream>
using namespace std;
template<typename T>
class myShape{
protected: