Search:

Type: Posts; User: mexists

Search: Search took 0.19 seconds.

  1. Replies
    8
    Views
    1,682

    Re: How Do I: Convert to Java

    okay, i get it! thanks for your time guys.. i'm sorry if i'd vexatious you.. i'm really really sorry...

    Problem Solved!
  2. Replies
    8
    Views
    1,682

    Re: How Do I: Convert to Java

    public class main{

    public static void main (String[] args) {

    CSquare<Integer> s = new CSquare<Integer>(5,5);
    System.out.println (s.area());
    }
    }
  3. Replies
    8
    Views
    1,682

    Re: How Do I: Convert to Java

    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;
    }
  4. Replies
    8
    Views
    1,682

    How Do I: Convert to Java

    :confused:



    #include "stdafx.h"
    #include<iostream>
    using namespace std;
    template<typename T>
    class myShape{
    protected:
Results 1 to 4 of 4